Inheritance: IDisposable
Exemplo n.º 1
0
 static ResourcesTests()
 {
     using (Configuration configuration = new Configuration(new Context(ConfigurationFactory.Create())))
         configuration.UpdateDatabase();
 }
Exemplo n.º 2
0
 public void UpdateDatabase(IApplicationBuilder app)
 {
     using (Configuration configuration = new Configuration(app.ApplicationServices.GetService<DbContext>()))
         configuration.UpdateDatabase();
 }
Exemplo n.º 3
0
 static InitialDataTests()
 {
     using (Configuration configuration = new Configuration(new Context(ConfigurationFactory.Create())))
         configuration.UpdateDatabase();
 }