/// <summary> /// Deprecated Method for adding a new object to the Sections EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSections(Section section) { base.AddObject("Sections", section); }
/// <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="maxStrength">Initial value of the MaxStrength property.</param> /// <param name="code">Initial value of the Code property.</param> public static Section CreateSection(global::System.Int32 id, global::System.String name, global::System.Int32 maxStrength, global::System.String code) { Section section = new Section(); section.Id = id; section.Name = name; section.MaxStrength = maxStrength; section.Code = code; return section; }