Share via


DatabaseConfigurationView.GetProviderMapping Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the DbProviderMapping that specifies the mapping between an ADO.NET provider factory and a Database instance.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
PublicFunctionGetProviderMapping ( _
    nameAs String, _
    dbProviderNameAs String _
) As DbProviderMapping
public DbProviderMapping GetProviderMapping(
    string name,
    string dbProviderName
)
public:
DbProviderMapping^ GetProviderMapping(
    String^ name, 
    String^ dbProviderName
)
publicfunctionGetProviderMapping(
    name : String, 
    dbProviderName : String
) : DbProviderMapping

Parameters

Return Value

The DbProviderMapping that matches the dbProviderName.

Remarks

The mapping based in logical names will be probed first. If there is no success, the default type based mappings will be considered. If no default mapping is defined for the provider factory type, the generic database will be used.

See Also

DatabaseConfigurationView Class

Microsoft.Practices.EnterpriseLibrary.Data Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.