Exemplo n.º 1
0
        public virtual (Result result, IEnumerable <T> entities) Select(string commandtext, CommandType commandtype = CommandType.StoredProcedure, IList <SqlParameter> parameters = null, int maxdepth = 1, IList <T> entities = null)
        {
            var executequery = _sqlcommandexecutor.ExecuteQuery(commandtext, commandtype, parameters, maxdepth, entities);

            if (executequery.entities?.Count() == 0)
            {
                executequery.result.Messages.Add((ResultCategory.Information, "Select", "No rows found"));
            }

            return(executequery);
        }