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); }
private void WriteLog(ApplicationLog record) { SetEventProperties(record); context.AddToContext(record); }
private void SetEventProperties(ApplicationLog log) { log.EventDate = calendarService.CurrentDateTime; log.Username = agencyContext.CurrentAgency.UserName; log.AgencyId = agencyContext.CurrentAgencyId; }
partial void DeleteApplicationLog(ApplicationLog instance);
partial void UpdateApplicationLog(ApplicationLog instance);
partial void InsertApplicationLog(ApplicationLog instance);