public int GetMaxIndex() { if (DBSet.Any()) { return(DBSet.Max(m => m.Index)); } return(-1); }
public bool DoesExist(int requestID, TaskTypeEnum type) { return(DBSet.Any(x => x.RequestID == requestID && x.Finished && x.TaskType == type)); }
public virtual bool Exists(Expression <Func <TEntity, bool> > predicate) { return(DBSet.Any(predicate)); }
public int GetMaxIndex() { return(DBSet.Any() ? DBSet.Max(m => m.Index) : -1); }
public bool HasMovimByCliProd(long cliprodId) { return(DBSet.Any(x => x.ItemMovimento.Any(i => i.ClienteProdutoId == cliprodId))); }
public bool HasMovimByUsuario(long usuarioId) { return(DBSet.Any(x => x.UsuarioId == usuarioId)); }
public bool HasMovimByFrota(long frotaId) { return(DBSet.Any(x => x.FrotaId == frotaId)); }
public bool HasMovimByColetor(long coletorId) { return(DBSet.Any(x => x.ColetorId == coletorId)); }