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