public int Insert(LectureTypeRequirementItem item)
        {
            string        query = "Insert into LectureTypeRequirement(accountId,lectureTypeId,cutline) VALUES(@AccountId,@LectureTypeId, @Cutline)";
            IDbParameters param = CreateDbParameters();

            param.AddWithValue("LectureTypeId", item.LectureTypeId).DbType = DbType.Int32;
            param.AddWithValue("AccountId", item.AccountId).DbType         = DbType.Int32;
            param.AddWithValue("Cutline", item.Cutline).DbType             = DbType.Int32;
            return(AdoTemplate.ExecuteNonQuery(CommandType.Text, query, param));
        }
        public int Update(LectureTypeRequirementItem item)
        {
            string        query = "UPDATE LectureTypeRequirement SET lectureTypeId = @LectureTypeId, accountId = @AccountId, cutline=@Cutline where id = @Id";
            IDbParameters param = CreateDbParameters();

            param.AddWithValue("Id", item.Id).DbType = DbType.Int32;
            param.AddWithValue("LectureTypeId", item.LectureTypeId).DbType = DbType.Int32;
            param.AddWithValue("AccountId", item.AccountId).DbType         = DbType.Int32;
            param.AddWithValue("Cutline", item.Cutline).DbType             = DbType.Int32;
            return(AdoTemplate.ExecuteNonQuery(CommandType.Text, query, param));
        }