- ABP Framework version: v7.2.2
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:Create and entity in a Module in abp Suite. Add a property, click save and generate. View the Domain Service Generated Code."
- Hello, I've recently upgraded to version 7.2.2 of abp suite and framework CLI. Upon generating an entity in Suite I'm presented with what looks like placeholders for the method generation i.e. %%Validations%% and %%Method Parameters%%. Please advise. I created a simple entity named Test as an example with a singular bool property called IsAlive.
public class TestManager : DomainService
{
private readonly ITestRepository _testRepository;
public TestManager(ITestRepository testRepository)
{
_testRepository = testRepository;
}
public async Task<Test> CreateAsync(
%%method-parameters%%)
{
%% validations %%
var test = new Test(
GuidGenerator.Create(),
isAlive
);
return await _testRepository.InsertAsync(test);
}
public async Task<Test> UpdateAsync(
Guid id,
%%method-parameters%%, [CanBeNull] string concurrencyStamp = null
)
{
%% validations %%
var test = await _testRepository.GetAsync(id);
test.IsAlive = isAlive;
test.SetConcurrencyStampIfNotNull(concurrencyStamp);
return await _testRepository.UpdateAsync(test);
}
}
}```