| 12345678910111213141516171819202122232425262728 |
- using System.Data.Entity.Migrations;
- using EntityFramework.DynamicFilters;
- using WePlatform.EF;
- using WePlatform.SeedData;
- using IwbZero.EntityFramework;
- using IwbZero.MultiTenancy;
- namespace WePlatform.Migrations
- {
- public sealed class Configuration : DbMigrationsConfiguration<WePlatformDbContext>, IMultiTenantSeed
- {
- public TenantBase Tenant { get; set; }
- public Configuration()
- {
- AutomaticMigrationsEnabled = false;
- ContextKey = "ADMINSYSTEM-WePlatform";
- }
- protected override void Seed(WePlatformDbContext context)
- {
- context.DisableAllFilters();
- new InitialDbBuilder(context).Create();
- }
- }
- }
|