Example #1
0
 /// <summary>
 /// Create a new Announcement object.
 /// </summary>
 /// <param name="announcementId">Initial value of the AnnouncementId property.</param>
 /// <param name="announcementText">Initial value of the AnnouncementText property.</param>
 /// <param name="createdAt">Initial value of the CreatedAt property.</param>
 /// <param name="isShownOnHomePage">Initial value of the IsShownOnHomePage property.</param>
 public static Announcement CreateAnnouncement(global::System.Int32 announcementId, global::System.String announcementText, global::System.DateTime createdAt, global::System.Boolean isShownOnHomePage)
 {
     Announcement announcement = new Announcement();
     announcement.AnnouncementId = announcementId;
     announcement.AnnouncementText = announcementText;
     announcement.CreatedAt = createdAt;
     announcement.IsShownOnHomePage = isShownOnHomePage;
     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);
 }