示例#1
0
        /// <summary>
        /// 新增一个实体数据
        /// </summary>
        /// <param name="data1">实体数据</param>
        public void NewData(JAuthorityDD data1)
        {
            JTable tab1 = new JTable(daConnect, TableName);

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

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

            tab1.Close();
            return(data1);
        }