Share via


DbProviderInfo Class

Definition

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
public sealed class DbProviderInfo
type DbProviderInfo = class
Public NotInheritable Class DbProviderInfo
Inheritance
DbProviderInfo
Attributes

Remarks

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.

Constructors

DbProviderInfo(String, String)

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

Properties

ProviderInvariantName

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

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.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

Applies to