Hi,
We also provide FullAuditedAggregateRootWithUser
base class. you can use it. see https://docs.abp.io/en/abp/latest/Entities#auditing-base-classes
Hi,
May be you need add the [UnitOfWork]
to the SeedAsync
method
[UnitOfWork]
public virtual async Task SeedAsync()
{
......
contact = await _contactRepository.InsertAsync(contact, true);
customer = await _customerRepository.GetAsync(customerId);
customer.AddContact(contact);
_logger.LogInformation($"\t Adding contact to customer {customer.Name}");
customer = await _customerRepository.UpdateAsync(customer, true);
}
Hi,
You can use creatorId
and lastmodifierId
to query users
like:
var model = _modelRepository.GetAsync(id);
var createUser = _userRepository.GetAsync(model.CreatorId);
Hi,
Try install olo.Abp.SettingManagement.Application
to your application project. and:
[DependsOn(typeof(AbpSettingManagementApplicationModule))]
public class ...ApplicationModule : AbpModule
Hi,
We have fixed this problem, you can wait for the 4.4 stable version release. ps: ticket returned
Hi,
You can override these methods and not update security token
HI,
It depends on business logic, in your business scenario, if the creator must be the author, that's ok. but I do not recommend using audit fields as business fields
Hi,
Seems you need to add the module manually.
Install
Volo.Abp.BlobStoring.Database.Domain.Shared
,
Volo.Abp.BlobStoring.Database.Domain
Volo.Abp.BlobStoring.EntityFrameworkCore
to Domain.Shared
, Domain
and EntityFrameworkCore
project.
[DependsOn(typeof(BlobStoringDatabaseDomainModule))]
public class ...DomainModule : AbpModule
....
[DependsOn(typeof(BlobStoringDatabaseEntityFrameworkCoreModule))]
public class ...EntityFrameworkCoreModule : AbpModule
....
Open ...DbContext
class
protected override void OnModelCreating(ModelBuilder builder)
{
.......
builder.ConfigureBlobStoring();
}
Then Add & Apply migrations.
Hi,
I can't reproduce the problem, can you share a project to reproduce? shiwei.liang@volosoft.com