static ResourcesTests() { using (Configuration configuration = new Configuration(new Context(ConfigurationFactory.Create()))) configuration.UpdateDatabase(); }
public void UpdateDatabase(IApplicationBuilder app) { using (Configuration configuration = new Configuration(app.ApplicationServices.GetService<DbContext>())) configuration.UpdateDatabase(); }
static InitialDataTests() { using (Configuration configuration = new Configuration(new Context(ConfigurationFactory.Create()))) configuration.UpdateDatabase(); }