private static ComputerName GetComputer(LogEvent logEvent, Database db) { ComputerName computer = ComputerName.OneWhere(cc => cc.Value == logEvent.Computer, db); if (computer == null) { computer = new ComputerName(); computer.Value = logEvent.Computer; computer.Save(db); } return(computer); }