Example #1
0
        public bool Insert(DataModel.LogInfo log)
        {
            bool isTrue = false;

            try
            {
                using (var db = BaseDal.WriteSanNongDunDbBase())
                {
                    isTrue = db.Insert <LogInfo>(log);
                    if (!isTrue)
                    {
                        LogHelper.WriteInfo(typeof(LogDal), "Insert--添加记录失败", Engineer.ccc, log);
                    }
                }
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog(typeof(LogDal), "Insert", Engineer.ccc, log, ex);
            }
            return(isTrue);
        }
Example #2
0
 public bool Insert(DataModel.LogInfo log)
 {
     return(_logDal.Insert(log));
 }