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