Пример #1
0
 public Repository(MedinetWebEntities dbContext)
 {
     if (dbContext == null)
     {
         throw new NullReferenceException("dbContext");
     }
     DbContext = dbContext;
     DbSet     = dbContext.Set <T>();
 }
Пример #2
0
 public AccesoRepository()
 {
     this.entities = new MedinetWebEntities();
 }