/// <summary>
 /// 添加历史试卷
 /// </summary>
 /// <param name="t">实体</param>
 /// <returns></returns>
 public bool Add(HistoricalPapers t)
 {
     try
     {
         var result = db.Insertable <HistoricalPapers>(t).ExecuteCommand();
         return(result > 0);
     }
     catch (Exception ex)
     {
         ErrorLog.WriteLog(ex);
         return(false);
     }
 }
 public bool Update(HistoricalPapers t)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
        /// <summary>
        /// 添加历史试卷
        /// </summary>
        /// <param name="t">实体</param>
        /// <returns></returns>
        public bool Add(HistoricalPapers t)
        {
            var result = IHistoricalPapers_dal.Add(t);

            return(result);
        }