Пример #1
0
        private static void CreateAndSaveNewLogRef(LogEntryRecord newLog, LogHelperEntry referenceEntry)
        {
            LogReferenceRecord record = LogReferenceRecord.CreateRecord();

            record.LogEntryId          = newLog.Id;
            record.ReferenceLogEntryId = referenceEntry.Record.Id;
            record.Save();
        }
Пример #2
0
        private static void CreateAndSaveNewLogRef(LogEntryRecord newLog, LogHelperEntry referenceEntry)
        {
            var newRefRec = LogReferenceRecord.CreateRecord();

            newRefRec.LogEntryId          = newLog.Id;
            newRefRec.ReferenceLogEntryId = referenceEntry.Record.Id;
            newRefRec.Save();
        }
Пример #3
0
        private static LogEntryRecord Save(LogSourceType sourceType, uint triggerId, string title)
        {
            LogEntryRecord record = LogEntryRecord.CreateRecord();

            record.TitleId       = TitleIds[title];
            record.Timestamp     = DateTime.Now;
            record.TrigererId    = triggerId;
            record.TriggererType = (byte)sourceType;
            record.Save();
            return(record);
        }
Пример #4
0
        private static LogEntryRecord Save(LogSourceType sourceType, uint triggerId, string title)
        {
            var newLog = LogEntryRecord.CreateRecord();

            newLog.TitleId       = TitleIds[title];
            newLog.Timestamp     = DateTime.Now;
            newLog.TrigererId    = triggerId;
            newLog.TriggererType = (byte)sourceType;
            newLog.Save();
            return(newLog);
        }
Пример #5
0
 private void SetRecord(LogEntryRecord record)
 {
     Record = record;
 }