Пример #1
0
 public Repository(EntityDatabaseContext dbContext)
 {
     DbContext = dbContext ?? throw new NullReferenceException("dbContext");
     DbSet     = dbContext.Set <T>();
 }
Пример #2
0
 public EntityDatabase(EntityDatabaseContext entityDatabaseContext)
 {
     _entityDatabaseContext = entityDatabaseContext;
 }