public void ConfigureDatabase()
 {   //kill initializer - features that may need one will reset this later
     Database.SetInitializer <TicketDeskContext>(null);
     //set the std migrator for identity
     Database.SetInitializer(new TicketDeskIdentityDbInitializer());
     DatabaseConfig.RegisterDatabase();
 }
예제 #2
0
 //TODO: while it is convienient to have all this set here, it may be more consistent to split the sub-domain db init up --perhaps move each into their own domain (identity and push notifications)
 public void ConfigureDatabase()
 {   //kill initializer - features that may need one will reset this later
     Database.SetInitializer <TdDomainContext>(null);
     Database.SetInitializer <TdIdentityContext>(null);
     Database.SetInitializer <TdPushNotificationContext>(null);
     //set the std migrator for identity
     if (DatabaseConfig.IsDatabaseReady)
     {
         Database.SetInitializer(new TdIdentityDbInitializer());
         Database.SetInitializer(new TdPushNotificationDbInitializer());
     }
     DatabaseConfig.RegisterDatabase();
 }