public SubscriptionController(BralekDbContext dbContext, IFeedsService feedsService, IFeedItemsService feedItemsService) { _dbContext = dbContext; _feedsService = feedsService; _feedItemsService = feedItemsService; }
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); } }
public ImportFeedService(BralekDbContext dbContext) { _dbContext = dbContext; }
public HomeController(BralekDbContext dbContext) { _dbContext = dbContext; }
public FeedsService(BralekDbContext dbContext) { _dbContext = dbContext; }
public AccountController(BralekDbContext dbContext) { _dbContext = dbContext; }
public SharedController(BralekDbContext dbContext) { _dbContext = dbContext; }