public static IDbo Factory(DbSetting dbSetting) { IDbo idb = null; idb = new Generate2008Sql(dbSetting); return(idb); }
public static IDbo Factory( ) { IDbo idb = null; switch (Utils.DataBaseType) { case DataBaseType.Sql2000: idb = new Generate2000Sql(); break; case DataBaseType.Sql2005: idb = new Generate2005Sql(); break; case DataBaseType.Sql2008: idb = new Generate2008Sql(); break; default: break; } return(idb); }
private BLLFactory( ) { idb = DALFactory.Factory(); }