示例#1
0
 public IQueryable <TEntity> GetAll()
 {
     return(context.Set <TEntity>().AsNoTracking());
 }
示例#2
0
 public Repository(DbContextMain context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }