hi
How can I reproduce your problem?
hi
Please try to update your AddressesDataSeedContributor.
using System;
using System.Threading.Tasks;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Uow;
using test04012022.Addresses;
namespace test04012022.Addresses
{
public class AddressesDataSeedContributor : IDataSeedContributor, ITransientDependency
{
private readonly IAddressRepository _addressRepository;
private readonly IUnitOfWorkManager _unitOfWorkManager;
public AddressesDataSeedContributor(IAddressRepository addressRepository, IUnitOfWorkManager unitOfWorkManager)
{
_addressRepository = addressRepository;
_unitOfWorkManager = unitOfWorkManager;
}
public async Task SeedAsync(DataSeedContext context)
{
if (await _addressRepository.FindAsync(Guid.Parse("a4821c19-b073-4dd4-94c0-299f3712a7ed")) == null)
{
await _addressRepository.InsertAsync(new Address
(
id: Guid.Parse("a4821c19-b073-4dd4-94c0-299f3712a7ed"),
firstname: "e60f19e1c89147d4958618eecd2e6"
));
}
if (await _addressRepository.FindAsync(Guid.Parse("87175640-2b9d-4c28-a1c2-b6aceca4969f")) == null)
{
await _addressRepository.InsertAsync(new Address
(
id: Guid.Parse("87175640-2b9d-4c28-a1c2-b6aceca4969f"),
firstname: "b23b24db6d974e7493ef2e1bdb915ed185da359993974b27bd30cb50b0c33c2ea02b782148f845"
));
}
await _unitOfWorkManager.Current.SaveChangesAsync();
}
}
}
ok, I will check it.
hi Please send your project to liming.ma@volosoft.com
Is it possible to reproduce the problem in a new project template?
ok, I will check it.
hi
Please send an email to info@abp.io
hi
Can you reproduce the problem in a new template project and share it? liming.ma@volosoft.com