[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e package is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, as indicated by its designation as "latest" in the version list.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides a reference for the \u003ccode\u003eSpannerProviderFactory\u003c/code\u003e class, which is part of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpannerProviderFactory\u003c/code\u003e inherits from \u003ccode\u003eDbProviderFactory\u003c/code\u003e and represents a set of methods for creating instances of Spanner data provider's implementation of data source classes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpannerProviderFactory\u003c/code\u003e class includes methods to create new instances of \u003ccode\u003eDbCommand\u003c/code\u003e, \u003ccode\u003eDbConnection\u003c/code\u003e, \u003ccode\u003eDbConnectionStringBuilder\u003c/code\u003e, \u003ccode\u003eDbDataAdapter\u003c/code\u003e, and \u003ccode\u003eDbParameter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpannerProviderFactory.Instance\u003c/code\u003e is a public static field that is required for the provider factory to function correctly, serving as the default instance of \u003ccode\u003eSpannerProviderFactory\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Spanner.Data - Class SpannerProviderFactory (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/5.0.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.6.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.5.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.4.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.3.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.2.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.1.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.0.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.15.1/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.14.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.13.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.12.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.11.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.10.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.9.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.8.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.7.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.6.0/Google.Cloud.Spanner.Data.SpannerProviderFactory)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.5.0/Google.Cloud.Spanner.Data.SpannerProviderFactory) \n\n public sealed class SpannerProviderFactory : DbProviderFactory\n\nReference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerProviderFactory.\n\nRepresents a set of methods for creating instances of the Spanner data provider's implementation of the data source classes. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [DbProviderFactory](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory) \\\u003e SpannerProviderFactory \n\nInherited Members\n-----------------\n\n[DbProviderFactory.CreateCommandBuilder()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createcommandbuilder) \n[DbProviderFactory.CreateDataSourceEnumerator()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createdatasourceenumerator) \n[DbProviderFactory.CanCreateDataSourceEnumerator](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.cancreatedatasourceenumerator) \n[DbProviderFactory.CanCreateDataAdapter](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.cancreatedataadapter) \n[DbProviderFactory.CanCreateCommandBuilder](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.cancreatecommandbuilder) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.Data](/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.Data.dll\n\nFields\n------\n\n### Instance\n\n public static readonly SpannerProviderFactory Instance\n\nThe default SpannerProviderFactory instance.\nThis public static field is required for the providerfactory to work properly.\n\nMethods\n-------\n\n### CreateCommand()\n\n public override DbCommand CreateCommand()\n\nReturns a new instance of the provider's class that implements the [DbCommand](https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand) class.\n\n**Overrides** \n[DbProviderFactory.CreateCommand()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createcommand)\n\n### CreateConnection()\n\n public override DbConnection CreateConnection()\n\nReturns a new instance of the provider's class that implements the [DbConnection](https://learn.microsoft.com/dotnet/api/system.data.common.dbconnection) class.\n\n**Overrides** \n[DbProviderFactory.CreateConnection()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createconnection)\n\n### CreateConnectionStringBuilder()\n\n public override DbConnectionStringBuilder CreateConnectionStringBuilder()\n\nReturns a new instance of the provider's class that implements the [DbConnectionStringBuilder](https://learn.microsoft.com/dotnet/api/system.data.common.dbconnectionstringbuilder) class.\n\n**Overrides** \n[DbProviderFactory.CreateConnectionStringBuilder()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createconnectionstringbuilder)\n\n### CreateDataAdapter()\n\n public override DbDataAdapter CreateDataAdapter()\n\nReturns a new instance of the provider's class that implements the [DbDataAdapter](https://learn.microsoft.com/dotnet/api/system.data.common.dbdataadapter) class.\n\n**Overrides** \n[DbProviderFactory.CreateDataAdapter()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createdataadapter)\n\n### CreateParameter()\n\n public override DbParameter CreateParameter()\n\nReturns a new instance of the provider's class that implements the [DbParameter](https://learn.microsoft.com/dotnet/api/system.data.common.dbparameter) class.\n\n**Overrides** \n[DbProviderFactory.CreateParameter()](https://learn.microsoft.com/dotnet/api/system.data.common.dbproviderfactory.createparameter)"]]