public ActionResult Index() { if (!SetupHelper.IsSetupAllowed()) return HttpNotFound(); var repositorySetup = new RepositorySetup(); repositorySetup.EnsureTableExists<AppMember>(); repositorySetup.EnsureTableExists<IdentityUserClaim>(); repositorySetup.EnsureTableExists<IdentityUserLogin>(); return Content("Setup complete."); }
public ActionResult Index() { if (!SetupHelper.IsSetupAllowed()) { return(HttpNotFound()); } var repositorySetup = new RepositorySetup(); repositorySetup.EnsureTableExists <AppMember>(); repositorySetup.EnsureTableExists <IdentityUserClaim>(); repositorySetup.EnsureTableExists <IdentityUserLogin>(); repositorySetup.EnsureTableExists <IdentityUserService>(); return(Content("Setup complete.")); }
public TableCPRStore(IRepository <CommandTable> commandRepository, IConfiguration config, ILoggerFactory loggerFactory) { m_commandRepository = commandRepository; var s = new RepositorySetup(new DefaultDbConnectionContextFactory(config, loggerFactory), config, loggerFactory); s.EnsureTableExists <CommandTable>(); }
public void Setup() { m_setup.EnsureTableExists <DataTable>(); }