Summary description for DBWrapper.
Inheritance: IDisposable
Example #1
0
		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;			
		}
Example #2
0
		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;			
		}
Example #3
0
		public static DBWrapper GetOracleWrapper()
		{
			DBWrapper oDB							= new DBWrapper();
			oDB.m_eProvider							= PROVIDER_TYPE.PROVIDER_ORACLE;

			return oDB;
		}
Example #4
0
		public static DBWrapper GetOdbcWrapper()
		{
			DBWrapper oDB							= new DBWrapper();
			oDB.m_eProvider							= PROVIDER_TYPE.PROVIDER_ODBC;

			return oDB;
		}
Example #5
0
		public static DBWrapper GetSqlClientWrapper()
		{
			DBWrapper oDB							= new DBWrapper();
			oDB.m_eProvider							= PROVIDER_TYPE.PROVIDER_SQLCLIENT;

			return oDB;
		}
Example #6
0
		public static DBWrapper GetOleDbWrapper()
		{
			DBWrapper oDB							= new DBWrapper();
			oDB.m_eProvider							= PROVIDER_TYPE.PROVIDER_OLEDB;

			return oDB;
		}