コード例 #1
0
 public void Write(string title, string description, ApplicationLog.LogType type)
 {
     var log = new ApplicationLog
     {
         Event = title,
         TypeEnum = type,
         FullText = description.Length > 7000 ? description.Substring(0, 7000) : description
     };
     WriteLog(log);
 }
コード例 #2
0
 private void WriteLog(ApplicationLog record)
 {
     SetEventProperties(record);
     context.AddToContext(record);
 }
コード例 #3
0
 private void SetEventProperties(ApplicationLog log)
 {
     log.EventDate = calendarService.CurrentDateTime;
     log.Username = agencyContext.CurrentAgency.UserName;
     log.AgencyId = agencyContext.CurrentAgencyId;
 }
コード例 #4
0
 partial void DeleteApplicationLog(ApplicationLog instance);
コード例 #5
0
 partial void UpdateApplicationLog(ApplicationLog instance);
コード例 #6
0
 partial void InsertApplicationLog(ApplicationLog instance);