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