コード例 #1
0
        /// <summary>
        /// 根据条件得到满足的第一个实体
        /// </summary>
        /// <param name="condition">查询条件</param>
        /// <param name="Fields">数据字段</param>
        /// <returns>实体数据</returns>
        public Tb_PL_MonthDD GetFirstDataEntity(List <SearchField> condition, params String[] Fields)
        {
            JTable        tab1  = new JTable(daConnect, TableName);
            Tb_PL_MonthDD data1 = tab1.GetFirstDataEntity <Tb_PL_MonthDD>(condition, Fields);

            tab1.Close();
            return(data1);
        }
コード例 #2
0
        /// <summary>
        /// 新增一个实体数据
        /// </summary>
        /// <param name="data1">实体数据</param>
        public void NewData(Tb_PL_MonthDD data1)
        {
            JTable tab1 = new JTable(daConnect, TableName);

            tab1.InsertData(data1);
            this.executeResultCount = tab1.ExecuteResultCount;
            tab1.Close();
        }
コード例 #3
0
        /// <summary>
        /// 根据条件,修改一个实体数据
        /// </summary>
        /// <param name="condition">修改数据的条件</param>
        /// <param name="data1">新的数据</param>
        public void EditData(List <SearchField> condition, Tb_PL_MonthDD data1)
        {
            JTable tab1 = new JTable(daConnect, TableName);

            tab1.EditData(data1, condition);
            this.executeResultCount = tab1.ExecuteResultCount;
            tab1.Close();
        }