questioncontentservice.cs
来自「本在线考试系统采用了面向对象的分析和设计」· CS 代码 · 共 26 行
CS
26 行
using System;
using System.Collections.Generic;
using System.Text;
using ExaminationSystem.BLL.DataInterface;
using ExaminationSystem.BLL.Domain;
namespace ExaminationSystem.BLL.Service
{
public class QuestionContentService : AbstractService<QuestionContent, IQuestionContentDao>
{
public override void DeleteById(long id)
{
QuestionContent questionContent = Dao.GetById(id,false);
questionContent.Chapter = null;
Dao.SaveOrUpdate(questionContent);
}
public void ClearUselessQuestionContent()
{
IQuestionContentDao dao = (IQuestionContentDao)Dao;
dao.ClearUselessQuestionContent();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?