Translates GraphQL queries to SQL queries according to metadata provided with (Schema).
Inheritance Hierarchy
NReco.GraphQLGraphqlDbAdapter
Namespace: NReco.GraphQL
Assembly: NReco.GraphQL (in NReco.GraphQL.dll) Version: 1.0.0
Syntax
The GraphqlDbAdapter type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| GraphqlDbAdapter(DbDataAdapter, GraphqlConfiguration) |
Initializes a new instance of the GraphqlDbAdapter with NReco.Data DbDataAdapter.
| |
| GraphqlDbAdapter(IDbDataSource, GraphqlConfiguration) |
Initializes a new instance of the GraphqlDbAdapter with IDbDataSource.
| |
| GraphqlDbAdapter(DbDataAdapter, GraphqlConfiguration, GraphqlSchemaOption) |
Initializes a new instance of the GraphqlDbAdapter with NReco.Data DbDataAdapter and custom resolvers for underlying GraphQL.NET library.
| |
| GraphqlDbAdapter(IDbDataSource, GraphqlConfiguration, GraphqlSchemaOption) |
Initializes a new instance of the GraphqlDbAdapter with IDbDataSource and custom resolvers for underlying GraphQL.NET library.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| ExecuteToJsonAsync(String, CancellationToken) |
Executes GraphQL query and returns result as a string.
| |
| ExecuteToJsonAsync(GraphQLQuery, CancellationToken) |
Executes GraphQL query and returns result as a string.
| |
| ExecuteToStreamAsync(String, Stream, CancellationToken) |
Executes GraphQL query and returns result to stream.
| |
| ExecuteToStreamAsync(GraphQLQuery, Stream, CancellationToken) |
Executes GraphQL query and returns result to stream.
| |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Remarks
GraphqlDbAdapter uses NReco.Data library for SQL generation; it is compatible with any ADO.NET provider. However you can provide your own IDbDataSource implementation if needed.
See Also