Exemple #1
0
        public async Task <List <T> > List(SQLControllerListCriteriaModel criteria)
        {
            try
            {
                if (criteria == null)
                {
                    return(null);
                }

                criteria.View = typeof(T).Name;

                var query = SQLQuery.BuildListQuery <T>(criteria);

                return(await DatabaseAsync.QueryAsync <T>(query));
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("Exception at List criteria: {0} {1}", typeof(T).Name, e);
                throw;
            }
        }