DbProviderInfo DbProviderInfo DbProviderInfo Class


Groups a pair of strings that identify a provider and server version together into a single object.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId="Db")]
public sealed class DbProviderInfo
type DbProviderInfo = class
Public NotInheritable Class DbProviderInfo


Instances of this class act as the key for resolving a DbSpatialServices for a specific provider from a IDbDependencyResolver. This is typically used when registering spatial services in DbConfiguration or when the spatial services specific to a provider is resolved by an implementation of DbProviderServices.


DbProviderInfo(String, String) DbProviderInfo(String, String) DbProviderInfo(String, String)

Creates a new object for a given provider invariant name and manifest token.


ProviderInvariantName ProviderInvariantName ProviderInvariantName

A string that identifies that provider. For example, the SQL Server provider uses the string "System.Data.SqlCient".

ProviderManifestToken ProviderManifestToken ProviderManifestToken

A string that identifies that version of the database server being used. For example, the SQL Server provider uses the string "2008" for SQL Server 2008. This cannot be null but may be empty.


Equals(Object) Equals(Object) Equals(Object)
GetHashCode() GetHashCode() GetHashCode()

Applies to