public bool IsAnyDictionaryByEntityName(string entityName) { var dicType = _dicTypeResolver.Resolve(entityName); var dictionaries = _context.Set(dicType) as IQueryable <IDictionaryEntity <int> >; return(dictionaries.Any()); }
public int?GetLastBarcode(Type paymentType) { var payments = _context.Set(paymentType) as IQueryable <Entity <int> >; return(payments .AsNoTracking() .OrderByDescending(d => d.Id) .FirstOrDefault()?.Id); }
public bool IsAnySecurityUsers(Type entityType) { var securityUsers = _context.Set(entityType) as IQueryable <dynamic>; return(securityUsers.Any()); }