AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

SqlProviderResolver Methods

The SqlProviderResolver type exposes the following members.

Methods


  Name Description
Public method Static member ActiveProviderName
Returns the canonical provider name ("Microsoft.Data.SqlClient" or "System.Data.SqlClient") for the given connection string name.
Public method Static member GetFactory
Returns the ISqlProviderFactory for the given connection string name. Resolution order: 1. providerName on the named connection string entry 2. AppSettings["DataProvider"] global fallback 3. System.Data.SqlClient default Thread-safe; each distinct name is resolved once per AppDomain.