Esempio n. 1
0
 /// <summary>
 /// Create a new Announcement object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 /// <param name="authorId">Initial value of the AuthorId property.</param>
 /// <param name="eventId">Initial value of the EventId property.</param>
 public static Announcement CreateAnnouncement(global::System.Int32 id, global::System.String title, global::System.String text, global::System.Int32 authorId, global::System.Int32 eventId)
 {
     Announcement announcement = new Announcement();
     announcement.Id = id;
     announcement.Title = title;
     announcement.Text = text;
     announcement.AuthorId = authorId;
     announcement.EventId = eventId;
     return announcement;
 }
Esempio n. 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);
 }