/********************************
 *
 * 作者:吴隆健
 * 创建时间: 2019-06-06 16:07:29
 * 
 ********************************/

using System;
using System.Collections.Generic;
using System.Data;

namespace MrWu.DB {
    /// <summary>
    /// 定时器执行得到的数据结果集
    /// </summary>
    public class DataResult {
        /// <summary>
        /// 参数
        /// </summary>
        public Dictionary<string, object> pms { get; set; }

        /// <summary>
        /// 返回的数据集
        /// </summary>
        public DataSet data { get; set; }

        /// <summary>
        /// 数据结果集
        /// </summary>
        public DataResult() { }

        /// <summary>
        /// 数据结果集
        /// </summary>
        /// <param name="pms"></param>
        public DataResult(Dictionary<string, object> pms) {
            this.pms = pms;
        }

        /// <summary>
        /// 数据结果集
        /// </summary>
        /// <param name="data"></param>
        public DataResult(DataSet data) {
            this.data = data;
        }

        /// <summary>
        /// 数据结果集
        /// </summary>
        /// <param name="pms">存储过程参数</param>
        /// <param name="data">返回的数据</param>
        public DataResult(Dictionary<string, object> pms, DataSet data) {
            this.pms = pms;
            this.data = data;
        }

    }
}
