Class DbProviderFactory
Inheritance
System.Object
DbProviderFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: FChoice.Common.dll
Syntax
public sealed class DbProviderFactory
Fields
CONFIGURATION_SECTION_NAME
Declaration
public const string CONFIGURATION_SECTION_NAME = "dataAccess"
Field Value
Type |
Description |
System.String |
|
MSSQL_PROVIDER_NAME
Declaration
public const string MSSQL_PROVIDER_NAME = "MSSQL"
Field Value
Type |
Description |
System.String |
|
ODPNET_PROVIDER_NAME
Declaration
public const string ODPNET_PROVIDER_NAME = "ODPNET"
Field Value
Type |
Description |
System.String |
|
ORACLE_PROVIDER_NAME
Declaration
public const string ORACLE_PROVIDER_NAME = "ORACLE"
Field Value
Type |
Description |
System.String |
|
Properties
Provider
Declaration
public static DbProvider Provider { get; set; }
Property Value
ProviderNames
Declaration
public static string[] ProviderNames { get; }
Property Value
Type |
Description |
System.String[] |
|
Methods
Declaration
public static void ConfigureProviders()
Declaration
public static void ConfigureProviders(string configFilePath)
Parameters
Type |
Name |
Description |
System.String |
configFilePath |
|
Declaration
public static void ConfigureProviders(XmlElement parentElm)
Parameters
Type |
Name |
Description |
System.Xml.XmlElement |
parentElm |
|
CreateProvider()
Declaration
public static DbProvider CreateProvider()
Returns
CreateProvider(String)
Declaration
public static DbProvider CreateProvider(string providerAlias)
Parameters
Type |
Name |
Description |
System.String |
providerAlias |
|
Returns
IsOracle()
Declaration
public static bool IsOracle()
Returns
Type |
Description |
System.Boolean |
|
IsValidProvider(String)
Declaration
public bool IsValidProvider(string providerName)
Parameters
Type |
Name |
Description |
System.String |
providerName |
|
Returns
Type |
Description |
System.Boolean |
|