Beispiel #1
0
 public SubscriptionController(BralekDbContext dbContext, IFeedsService feedsService,
                               IFeedItemsService feedItemsService)
 {
     _dbContext        = dbContext;
     _feedsService     = feedsService;
     _feedItemsService = feedItemsService;
 }
Beispiel #2
0
        protected override void Init()
        {
            Database.SetInitializer <BralekDbContext>(null);

            // forcing the application of the migrations so the users table is modified before
            // the code below tries to create it.
            using (var context = new BralekDbContext("DefaultConnection"))
            {
                var migrations = new MigrateDatabaseToLatestVersion <BralekDbContext, Configuration>();
                migrations.InitializeDatabase(context);
            }
        }
Beispiel #3
0
 public ImportFeedService(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #4
0
 public HomeController(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #5
0
 public FeedsService(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #6
0
 public AccountController(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #7
0
 public SharedController(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }