示例#1
0
        public static clsDataAdapterBase createAdapter(string sConnectionType, string sConnectionString)
        {
            clsDataAdapterBase _adapter = null;

            switch (sConnectionType.ToLower())
            {
            case "mssql":
                _adapter = new clsMSSQLAdapter(sConnectionString);
                return(_adapter);

            case "sqlite":
                _adapter = Activator.CreateInstance("Billing", "Billing.clsSQLiteAdapter").Unwrap() as clsDataAdapterBase;
                _adapter.connectionString = sConnectionString;
                return(_adapter);

            case "mysql":
            case "access":
                throw new Exception("Not implemented !");

            default:
                throw new Exception("Unknown connection type !");
            }
        }
示例#2
0
 public clsRequestGetData_SimpleView(NTier.adapter.clsDataAdapterBase adapter)
 {
     _adapter = adapter;
 }
示例#3
0
 public clsRequestGetData_FromAssembly(NTier.adapter.clsDataAdapterBase adapter)
 {
     _adapter = adapter;
 }
示例#4
0
 public clsRequestGetData_sql(NTier.adapter.clsDataAdapterBase adapter)
 {
     _adapter = adapter;
 }