Ejemplo n.º 1
0
        public void WriteDbLog(bool result, string resultLog)
        {
            SysLog SysLog = new SysLog();

            SysLog.Id            = Common.GuId();
            SysLog.Date          = DateTime.Now;
            SysLog.Account       = CoreContextProvider.CurrentSysUser.UserCode;
            SysLog.NickName      = CoreContextProvider.CurrentSysUser.RealName;
            SysLog.IPAddress     = Net.Ip;
            SysLog.IPAddressName = Net.GetLocation(SysLog.IPAddress);
            SysLog.Result        = result;
            SysLog.Description   = resultLog;
            _Respository.Insert(SysLog);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 登陆日志
 /// </summary>
 /// <param name="SysLog"></param>
 public void WriteSysLog(SysLog SysLog)
 {
     SysLog.Id            = Common.GuId();
     SysLog.Date          = DateTime.Now;
     SysLog.IPAddress     = "127.0.0.1";
     SysLog.IPAddressName = NetClient.GetLocation(SysLog.IPAddress);
     _Respository.Insert(SysLog);
 }
Ejemplo n.º 3
0
 public void WriteSysLog(SysLog logEntity)
 {
     logEntity.Id            = Common.GuId();
     logEntity.Date          = DateTime.Now;
     logEntity.IPAddress     = "127.0.0.1";
     logEntity.IPAddressName = Net.GetLocation(logEntity.IPAddress);
     //logEntity.Create();
     _Respository.Insert(logEntity);
 }