public bool IsAnyDictionaryByEntityName(string entityName)
        {
            var dicType      = _dicTypeResolver.Resolve(entityName);
            var dictionaries = _context.Set(dicType) as IQueryable <IDictionaryEntity <int> >;

            return(dictionaries.Any());
        }
Example #2
0
        public int?GetLastBarcode(Type paymentType)
        {
            var payments = _context.Set(paymentType) as IQueryable <Entity <int> >;

            return(payments
                   .AsNoTracking()
                   .OrderByDescending(d => d.Id)
                   .FirstOrDefault()?.Id);
        }
Example #3
0
        public bool IsAnySecurityUsers(Type entityType)
        {
            var securityUsers = _context.Set(entityType) as IQueryable <dynamic>;

            return(securityUsers.Any());
        }