Пример #1
0
 private object RunDataQuery(QueryRequest query)
 {
     try
     {
         var data = _dbContext.QueryObject(query, _schemaProvider);
         return(data);
     }
     catch (Exception)
     {
         return(HttpStatusCode.InternalServerError);
     }
 }
Пример #2
0
        private object RunDataQuery(string query)
        {
            try
            {
                var schemProvider = new MappedSchemaProvider <DemoContext>();

                var data = _dbContext.QueryObject(query, _schemaProvider);
                return(data);
            }
            catch (Exception)
            {
                return(HttpStatusCode.InternalServerError);
            }
        }
Пример #3
0
        private object RunDataQuery(string query)
        {
            try
            {
                var schemProvider = new MappedSchemaProvider <DemoContext>();

                var data = _dbContext.QueryObject(query, _schemaProvider, relationHandler: new EfRelationHandler(typeof(EntityFrameworkQueryableExtensions)));
                return(data);
            }
            catch (Exception)
            {
                return(HttpStatusCode.InternalServerError);
            }
        }