Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="exp"></param>
 /// <returns></returns>
 public bool IsExist <T>(Expression <Func <T, bool> > exp) where T : class
 {
     return(_context.Set <T>().Any(exp));
 }
Example #2
0
 public BaseRepository(EFCoreDBContext context)
 {
     _context = context;
     _dbSet   = _context.Set <T>();
 }