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

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

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

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

			return oDB;
		}