GraphqlDbAdapter Class

NReco.GraphQL Class Library Documentation
Translates GraphQL queries to SQL queries according to metadata provided with (Schema).
Inheritance Hierarchy

SystemObject
  NReco.GraphQLGraphqlDbAdapter

Namespace:  NReco.GraphQL
Assembly:  NReco.GraphQL (in NReco.GraphQL.dll) Version: 1.0.0
Syntax

public class GraphqlDbAdapter : IGraphqlAdapter

The GraphqlDbAdapter type exposes the following members.

Constructors

  NameDescription
Public methodGraphqlDbAdapter(DbDataAdapter, GraphqlConfiguration)
Initializes a new instance of the GraphqlDbAdapter with NReco.Data DbDataAdapter.
Public methodGraphqlDbAdapter(IDbDataSource, GraphqlConfiguration)
Initializes a new instance of the GraphqlDbAdapter with IDbDataSource.
Public methodGraphqlDbAdapter(DbDataAdapter, GraphqlConfiguration, GraphqlSchemaOption)
Initializes a new instance of the GraphqlDbAdapter with NReco.Data DbDataAdapter and custom resolvers for underlying GraphQL.NET library.
Public methodGraphqlDbAdapter(IDbDataSource, GraphqlConfiguration, GraphqlSchemaOption)
Initializes a new instance of the GraphqlDbAdapter with IDbDataSource and custom resolvers for underlying GraphQL.NET library.
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodExecuteToJsonAsync(String, CancellationToken)
Executes GraphQL query and returns result as a string.
Public methodExecuteToJsonAsync(GraphQLQuery, CancellationToken)
Executes GraphQL query and returns result as a string.
Public methodExecuteToStreamAsync(String, Stream, CancellationToken)
Executes GraphQL query and returns result to stream.
Public methodExecuteToStreamAsync(GraphQLQuery, Stream, CancellationToken)
Executes GraphQL query and returns result to stream.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
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

Reference