public GenericRepository(ModelDb context)
 {
     this.context         = context;
     context.Database.Log = (s) => { Debug.WriteLine(s); };
     this.dbSet           = context.Set <TEntity>();
 }
 public GenericRepository(ModelDb context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
     context.ChangeTracker.LazyLoadingEnabled = true;
 }
Exemple #3
0
 public GenericRepository(ModelDb context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
Exemple #4
0
 public Repository(ModelDb db)
 {
     _db    = db;
     _table = _db.Set <T>();
 }