예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sections EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSections(Section section)
 {
     base.AddObject("Sections", section);
 }
예제 #2
0
 /// <summary>
 /// Create a new Section object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="insertedDate">Initial value of the InsertedDate property.</param>
 /// <param name="imageUrl">Initial value of the ImageUrl property.</param>
 /// <param name="thumbnailUrl">Initial value of the ThumbnailUrl property.</param>
 public static Section CreateSection(global::System.Int32 id, global::System.String name, global::System.DateTime insertedDate, global::System.String imageUrl, global::System.String thumbnailUrl)
 {
     Section section = new Section();
     section.Id = id;
     section.Name = name;
     section.InsertedDate = insertedDate;
     section.ImageUrl = imageUrl;
     section.ThumbnailUrl = thumbnailUrl;
     return section;
 }