Class SpannerProviderFactory
Represents a set of methods for creating instances of the Spanner data provider's implementation of the data source classes.
Inherited Members
Namespace: Google.Cloud.Spanner.Data
Assembly: Google.Cloud.Spanner.Data.dll
Syntax
public sealed class SpannerProviderFactory : DbProviderFactory
Fields
Instance
The default SpannerProviderFactory instance. This public static field is required for the providerfactory to work properly.
Declaration
public static readonly SpannerProviderFactory Instance
Field Value
Type | Description |
---|---|
SpannerProviderFactory |
Methods
CreateCommand()
Returns a new instance of the provider's class that implements the DbCommand class.
Declaration
public override DbCommand CreateCommand()
Returns
Type | Description |
---|---|
DbCommand | A new instance of DbCommand. |
Overrides
CreateConnection()
Returns a new instance of the provider's class that implements the DbConnection class.
Declaration
public override DbConnection CreateConnection()
Returns
Type | Description |
---|---|
DbConnection | A new instance of DbConnection. |
Overrides
CreateConnectionStringBuilder()
Returns a new instance of the provider's class that implements the DbConnectionStringBuilder class.
Declaration
public override DbConnectionStringBuilder CreateConnectionStringBuilder()
Returns
Type | Description |
---|---|
DbConnectionStringBuilder | A new instance of DbConnectionStringBuilder. |
Overrides
CreateDataAdapter()
Returns a new instance of the provider's class that implements the DbDataAdapter class.
Declaration
public override DbDataAdapter CreateDataAdapter()
Returns
Type | Description |
---|---|
DbDataAdapter | A new instance of DbDataAdapter. |
Overrides
CreateParameter()
Returns a new instance of the provider's class that implements the DbParameter class.
Declaration
public override DbParameter CreateParameter()
Returns
Type | Description |
---|---|
DbParameter | A new instance of DbParameter. |