示例#1
0
 public JsonSchemaQueryControllerConfiguration(QueryControllerParameters parameters)
 {
     Storage          = new FileStoreSchemaStorage();
     Resolver         = new SqlJsonObjectResolver();
     ExpressionEngine = new SqlExpressionEngine(Resolver);
     Reader           = new JsonStoreSchemaReader(Storage);
     ReaderParameters = new JsonStoreSchemaReaderParameters {
         SchemaFile = parameters.SchemaFilename
     };
 }
示例#2
0
 public EntityFrameworkQueryControllerConfiguration(QueryControllerParameters parameters)
 {
     Storage          = new FileStoreSchemaStorage();
     Resolver         = new SqlJsonObjectResolver();
     ExpressionEngine = new SqlExpressionEngine(Resolver);
     Reader           = new EntityFrameworkStoreSchemaReader();
     ReaderParameters = new EntityFrameworkStoreSchemaReaderParameters {
         DbContextType = parameters.DbContextType
     };
 }