/// <summary> /// Deprecated Method for adding a new object to the logentries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTologentries(logentries logentries) { base.AddObject("logentries", logentries); }
private void WriteLog(string message, string fromFunction) { logentries logEntry = new logentries(); logEntry.Message = message; logEntry.Function = fromFunction; logEntry.Application = "WonderService"; logEntry.CreatedDate = DateTime.Now; wonderDB.logentries.AddObject(logEntry); wonderDB.SaveChanges(); }
/// <summary> /// Create a new logentries object. /// </summary> /// <param name="logID">Initial value of the LogID property.</param> public static logentries Createlogentries(global::System.Int32 logID) { logentries logentries = new logentries(); logentries.LogID = logID; return logentries; }