Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DbProviderFactory.GetDbProvider Method

Gets the DbProvider given an identifying name.

[Visual Basic]
Public Shared Sub GetDbProvider( _
   ByVal providerInvariantName As String _
)
[C#]
public static IDbProvider GetDbProvider(
   string providerInvariantName
);

Parameters

providerInvariantName
Name of the provider invariant.

Return Value

Remarks

Familiar names for the .NET 2.0 provider model are supported, i.e. System.Data.SqlClient. Refer to the documentation for a complete listing of supported DbProviders and their names. You may also use the method GetDbProviderClasses or obtain the underlying IApplicationContext to progammatically obtain information about supported providers.

See Also

DbProviderFactory Class | Spring.Data.Common Namespace