Beispiel #1
0
 public EfSociumDataProvider(IEfSociumDbContext dbContext)
 {
     this.dbContext = dbContext;
     this.Questions = new EfRepository <Question>(dbContext);
     this.Options   = new EfRepository <Option>(dbContext);
     this.Users     = new EfRepository <ApplicationUser>(dbContext);
     this.Votes     = new EfRepository <Vote>(dbContext);
 }
Beispiel #2
0
 public EfRepository(IEfSociumDbContext dbContext)
 {
     this.dbContext = dbContext;
     this.dbSet     = this.dbContext.GetDbSet <TEntity>();
 }