public override void InitializeDatabase(ContextBase context) { if (context is ContextMaster) { SeederMaster.Seed(context as ContextMaster); } else if (context is ContextTenant) { SeederTenant.Seed(context as ContextTenant); } else if (context is ContextDesktop) { SeederDesktop.Seed(context as ContextDesktop); } else { throw (new NotImplementedException()); } base.InitializeDatabase(context); }
protected override void Seed(ContextBase context) { if (context is ContextMaster) { SeederMaster.Seed(context as ContextMaster); } else if (context is ContextTenant) { SeederTenant.Seed(context as ContextTenant); } else if (context is ContextDesktop) { SeederDesktop.Seed(context as ContextDesktop); } else { throw (new NotImplementedException()); } base.Seed(context); }