Пример #1
0
 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.");
 }
Пример #2
0
        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."));
        }
Пример #3
0
        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>();
        }
Пример #4
0
 public void Setup()
 {
     m_setup.EnsureTableExists <DataTable>();
 }