private static IAuthenticationService AuthenticationService() { string applicationName = "sops"; IPersistenceConfigurer persistenceConfigurer = MsSqlConfiguration.MsSql2008.ConnectionString(c => c.FromConnectionStringWithKey("DefaultConnection")); IAuthenticationService service = new FormsAuthenticationService(applicationName, new BCryptStrategy(), new ConsoleLogger(), persistenceConfigurer, c => { var u = new SchemaUpdate(c); u.Execute(true, true); }); service.Configure(); return(service); }