示例#1
0
 public static bool EntityExists(long id, IDefaultContext _context)
 {
     return(_context.Set <T>().Any(e => e.Id == id));
 }
示例#2
0
 public virtual IQueryable <T> GetIQueryable()
 {
     return(_context.Set <T>().AsNoTracking());
 }