abp
abp copied to clipboard
How do I stop/replace data seeder?
How do I stop current data seeders from the existing modules?
I don't want any admin users to be seeded on my database when running the dbmigrator but the IdentityDataSeedContributor runs and seeds it every time.
You can try to remove IdentityDataSeedContributor in AbpDataSeedOptions.
That worked thanks!
Configure<AbpDataSeedOptions>(options =>
{
options.Contributors.Remove<IdentityDataSeedContributor>();
});