/// <summary>
 /// Deprecated Method for adding a new object to the OldEvents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOldEvents(OldEvent oldEvent)
 {
     base.AddObject("OldEvents", oldEvent);
 }
 /// <summary>
 /// Create a new OldEvent object.
 /// </summary>
 /// <param name="eventId">Initial value of the EventId property.</param>
 /// <param name="tableId">Initial value of the TableId property.</param>
 /// <param name="reference">Initial value of the Reference property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="eventVisibilityId">Initial value of the EventVisibilityId property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="changed">Initial value of the Changed property.</param>
 /// <param name="createdByPersonId">Initial value of the CreatedByPersonId property.</param>
 /// <param name="changedByPersonId">Initial value of the ChangedByPersonId property.</param>
 /// <param name="eventDate">Initial value of the EventDate property.</param>
 /// <param name="churchId">Initial value of the ChurchId property.</param>
 public static OldEvent CreateOldEvent(global::System.Int32 eventId, global::System.Int32 tableId, global::System.Int32 reference, global::System.String description, global::System.Int32 eventVisibilityId, global::System.DateTime created, global::System.DateTime changed, global::System.Int32 createdByPersonId, global::System.Int32 changedByPersonId, global::System.DateTime eventDate, global::System.Int32 churchId)
 {
     OldEvent oldEvent = new OldEvent();
     oldEvent.EventId = eventId;
     oldEvent.TableId = tableId;
     oldEvent.Reference = reference;
     oldEvent.Description = description;
     oldEvent.EventVisibilityId = eventVisibilityId;
     oldEvent.Created = created;
     oldEvent.Changed = changed;
     oldEvent.CreatedByPersonId = createdByPersonId;
     oldEvent.ChangedByPersonId = changedByPersonId;
     oldEvent.EventDate = eventDate;
     oldEvent.ChurchId = churchId;
     return oldEvent;
 }