コード例 #1
0
        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()));
            }
        }
コード例 #2
0
        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));
            }
        }