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