Esempio n. 1
0
 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);
            }
        }
Esempio n. 3
0
 public FeedItemsService(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 4
0
 public ImportFeedService(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 5
0
 public SharedController(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 6
0
 public HomeController(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 7
0
 public AccountController(BralekDbContext dbContext)
 {
     _dbContext = dbContext;
 }