/// <summary> /// 新增一个实体数据 /// </summary> /// <param name="data1">实体数据</param> public void NewData(JRoleUsersDD data1) { JTable tab1 = new JTable(daConnect, TableName); tab1.InsertData(data1); tab1.Close(); }
/// <summary> /// 根据条件,修改一个实体数据 /// </summary> /// <param name="condition">修改数据的条件</param> /// <param name="data1">新的数据</param> public void EditData(List <SearchField> condition, JRoleUsersDD data1) { JTable tab1 = new JTable(daConnect, TableName); tab1.EditData(data1, condition); tab1.Close(); }
/// <summary> /// 根据条件得到满足的第一个实体 /// </summary> /// <param name="condition">查询条件</param> /// <param name="Fields">数据字段</param> /// <returns>实体数据</returns> public JRoleUsersDD GetFirstDataEntity(List <SearchField> condition, params String[] Fields) { JTable tab1 = new JTable(daConnect, TableName); JRoleUsersDD data1 = tab1.GetFirstDataEntity <JRoleUsersDD>(condition, Fields); tab1.Close(); return(data1); }