abp icon indicating copy to clipboard operation
abp copied to clipboard

How do I stop/replace data seeder?

Open aklscv opened this issue 6 years ago • 2 comments

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.

aklscv avatar Apr 03 '20 02:04 aklscv

You can try to remove IdentityDataSeedContributor in AbpDataSeedOptions.

maliming avatar Apr 03 '20 05:04 maliming

That worked thanks!

Configure<AbpDataSeedOptions>(options =>
{
   options.Contributors.Remove<IdentityDataSeedContributor>();
});

aklscv avatar Apr 03 '20 05:04 aklscv