private object RunDataQuery(QueryRequest query) { try { var data = _dbContext.QueryObject(query, _schemaProvider); return(data); } catch (Exception) { return(HttpStatusCode.InternalServerError); } }
private object RunDataQuery(string query) { try { var schemProvider = new MappedSchemaProvider <DemoContext>(); var data = _dbContext.QueryObject(query, _schemaProvider); return(data); } catch (Exception) { return(HttpStatusCode.InternalServerError); } }
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); } }