/// <summary>
 /// Create a new Activity object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="period">Initial value of the Period property.</param>
 /// <param name="ringId">Initial value of the RingId property.</param>
 /// <param name="auditoriumId">Initial value of the AuditoriumId property.</param>
 public static Activity CreateActivity(global::System.Int32 id, global::System.String name, global::System.DateTime date, global::System.String period, global::System.Int32 ringId, global::System.Int32 auditoriumId)
 {
     Activity activity = new Activity();
     activity.Id = id;
     activity.Name = name;
     activity.Date = date;
     activity.Period = period;
     activity.RingId = ringId;
     activity.AuditoriumId = auditoriumId;
     return activity;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Activities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToActivities(Activity activity)
 {
     base.AddObject("Activities", activity);
 }