public virtual IList <T> GetFilter(List <string> parms, string storeName = "") { switch (ConnectionName) { case "Default": return(DbAdapter1.ReadList(storeName, Make, true, parms.ToArray())); case "Inside": return(DbAdapter2.ReadList(storeName, Make, true, parms.ToArray())); default: return(DbAdapter1.ReadList(storeName, Make, true, parms.ToArray())); } }
public virtual IList <T> GetList(object[] parms) { string sql = StoreProcedurePrefix + "GetList"; switch (ConnectionName) { case "Default": return(DbAdapter1.ReadList <T>(sql, Make, true, parms)); case "Inside": return(DbAdapter2.ReadList <T>(sql, Make, true, parms)); default: return(DbAdapter1.ReadList <T>(sql, Make, true, parms)); } }