Ejemplo n.º 1
0
        /// <summary>
        /// 执行存储过程
        /// </summary>
        /// <param name="ClientCode">客户端代码</param>
        /// <param name="DbName">数据库名称</param>
        /// <param name="TransID">事务ID</param>
        /// <param name="ProcedureName">存储过程名</param>
        /// <param name="Param">参数字典</param>
        /// <returns>参数字典</returns>
        public Dictionary <string, object> ExecuteProcedure(string ClientCode, string DbName, string TransID, string ProcedureName, Dictionary <string, object> Param)
        {
            Data.DBConnection dbConn = Data.DBConfig.GetDBConnection(ClientCode, DbName);
            LogClientTransaction(TransID);
            IDataClient idc = GetDataClient(dbConn.DBType);

            return(idc.ExecuteProcedure(TransID, dbConn.ConnectionString, ProcedureName, Param));
        }