Esempio n. 1
0
 // The following code creates the database and schema if they don't exist.
 // This is a temporary workaround since deploying database through EF migrations is
 // not yet supported in this release.
 // Please see this http://go.microsoft.com/fwlink/?LinkID=615859 for more information on how to do deploy the database
 // when publishing your application.
 private static void EnsureDatabaseCreated(EverReaderContext context)
 {
     if (!_databaseChecked)
     {
         _databaseChecked = true;
         context.Database.Migrate();
     }
 }
Esempio n. 2
0
 public ReaderController(UserManager <ApplicationUser> userManager,
                         EverReaderContext applicationDbContext,
                         IEverReaderDataAccess dataAccess)
 {
     _userManager          = userManager;
     _applicationDbContext = applicationDbContext;
     _dataAccess           = dataAccess;
 }
Esempio n. 3
0
 public AccountController(
     UserManager<ApplicationUser> userManager,
     SignInManager<ApplicationUser> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     EverReaderContext applicationDbContext)
 {
     _userManager = userManager;
     _signInManager = signInManager;
     _emailSender = emailSender;
     _smsSender = smsSender;
     _applicationDbContext = applicationDbContext;
 }
Esempio n. 4
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     EverReaderContext applicationDbContext)
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _emailSender          = emailSender;
     _smsSender            = smsSender;
     _applicationDbContext = applicationDbContext;
 }
Esempio n. 5
0
 // The following code creates the database and schema if they don't exist.
 // This is a temporary workaround since deploying database through EF migrations is
 // not yet supported in this release.
 // Please see this http://go.microsoft.com/fwlink/?LinkID=615859 for more information on how to do deploy the database
 // when publishing your application.
 private static void EnsureDatabaseCreated(EverReaderContext context)
 {
     if (!_databaseChecked)
     {
         _databaseChecked = true;
         context.Database.Migrate();
     }
 }
Esempio n. 6
0
 public EverReaderDataAccessEF7(EverReaderContext dbContext)
 {
     _dbContext = dbContext;
 }
 public EverReaderDataAccessEF7(EverReaderContext dbContext)
 {
     _dbContext = dbContext;
 }