public static DBWrapper GetADONETWrapper(string sProviderAssembly, string sConnectionClass, string sCommandBuilderClass) { DBWrapper oDB = new DBWrapper(); oDB.ProviderAssemblyName = sProviderAssembly; oDB.ProviderConnectionClassName = sConnectionClass; oDB.ProviderCommandBuilderClassName = sCommandBuilderClass; oDB.m_eProvider = PROVIDER_TYPE.PROVIDER_OTHER; return oDB; }
public static DBWrapper GetADONETWrapper() { DBWrapper oDB = new DBWrapper(); oDB.ProviderAssemblyName = System.Configuration.ConfigurationManager.AppSettings["ADONET_ASSEMBLY"]; oDB.ProviderConnectionClassName = System.Configuration.ConfigurationManager.AppSettings["ADONET_CONNECTION_CLASS"]; oDB.ProviderCommandBuilderClassName = System.Configuration.ConfigurationManager.AppSettings["ADONET_COMMANDBUILDER_CLASS"]; oDB.m_eProvider = PROVIDER_TYPE.PROVIDER_OTHER; return oDB; }
public static DBWrapper GetOracleWrapper() { DBWrapper oDB = new DBWrapper(); oDB.m_eProvider = PROVIDER_TYPE.PROVIDER_ORACLE; return oDB; }
public static DBWrapper GetOdbcWrapper() { DBWrapper oDB = new DBWrapper(); oDB.m_eProvider = PROVIDER_TYPE.PROVIDER_ODBC; return oDB; }
public static DBWrapper GetSqlClientWrapper() { DBWrapper oDB = new DBWrapper(); oDB.m_eProvider = PROVIDER_TYPE.PROVIDER_SQLCLIENT; return oDB; }
public static DBWrapper GetOleDbWrapper() { DBWrapper oDB = new DBWrapper(); oDB.m_eProvider = PROVIDER_TYPE.PROVIDER_OLEDB; return oDB; }