Example #1
0
 /// <summary>
 /// Create a new Announcement object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="event_ID">Initial value of the Event_ID property.</param>
 /// <param name="publishDate">Initial value of the PublishDate property.</param>
 public static Announcement CreateAnnouncement(global::System.Int32 id, global::System.Int32 event_ID, global::System.DateTime publishDate)
 {
     Announcement announcement = new Announcement();
     announcement.ID = id;
     announcement.Event_ID = event_ID;
     announcement.PublishDate = publishDate;
     return announcement;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Announcements EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAnnouncements(Announcement announcement)
 {
     base.AddObject("Announcements", announcement);
 }