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; }
public GenericRepository(ModelDb context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public Repository(ModelDb db) { _db = db; _table = _db.Set <T>(); }