コード例 #1
0
        public virtual int UpdateCustomField(object[] parms, string sql)
        {
            switch (ConnectionName)
            {
            case "Default":
                return(Convert.ToInt32(DbAdapter1.ExcecuteScalar(sql, false, parms)));

            case "Inside":
                return(Convert.ToInt32(DbAdapter2.ExcecuteScalar(sql, false, parms)));

            default:
                return(Convert.ToInt32(DbAdapter1.ExcecuteScalar(sql, false, parms)));
            }
        }
コード例 #2
0
        public virtual object GetSingleData(List <string> parms, string storeProcedure)
        {
            switch (ConnectionName)
            {
            case "Default":
                return(DbAdapter1.ExcecuteScalar(storeProcedure, true, parms.ToArray()));

            case "Inside":
                return(DbAdapter2.ExcecuteScalar(storeProcedure, true, parms.ToArray()));

            default:
                return(DbAdapter1.ExcecuteScalar(storeProcedure, true, parms.ToArray()));
            }
        }