Exemplo n.º 1
0
        public bool Insert(TiXianLog tiXianLog)
        {
            bool isTrue = false;

            try
            {
                using (var db = BaseDal.WriteSanNongDunDbBase())
                {
                    isTrue = db.Insert <TiXianLog>(tiXianLog);
                    if (!isTrue)
                    {
                        LogHelper.WriteInfo(typeof(TiXianLogDal), "Insert--添加记录失败", Engineer.ccc, tiXianLog);
                    }
                }
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog(typeof(TiXianLogDal), "Insert", Engineer.ccc, tiXianLog, ex);
            }
            return(isTrue);
        }
Exemplo n.º 2
0
 public bool Insert(TiXianLog tiXianLog)
 {
     return(_TiXianLogDal.Insert(tiXianLog));
 }