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 !"); } }
public clsRequestGetData_SimpleView(NTier.adapter.clsDataAdapterBase adapter) { _adapter = adapter; }
public clsRequestGetData_FromAssembly(NTier.adapter.clsDataAdapterBase adapter) { _adapter = adapter; }
public clsRequestGetData_sql(NTier.adapter.clsDataAdapterBase adapter) { _adapter = adapter; }