Esempio n. 1
0
 /// <summary>
 /// Create a new EventLog object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="category">Initial value of the Category property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="createBy">Initial value of the CreateBy property.</param>
 public static EventLog CreateEventLog(global::System.Guid id, global::System.String category, global::System.DateTime dateCreated, global::System.String createBy)
 {
     EventLog eventLog = new EventLog();
     eventLog.ID = id;
     eventLog.Category = category;
     eventLog.DateCreated = dateCreated;
     eventLog.CreateBy = createBy;
     return eventLog;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EventLog EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEventLog(EventLog eventLog)
 {
     base.AddObject("EventLog", eventLog);
 }