/// <summary> /// Deprecated Method for adding a new object to the Minors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMinors(Minor minor) { base.AddObject("Minors", minor); }
/// <summary> /// Create a new Minor object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="hours">Initial value of the Hours property.</param> public static Minor CreateMinor(global::System.Int32 id, global::System.String name, global::System.String description, global::System.Int16 hours) { Minor minor = new Minor(); minor.Id = id; minor.Name = name; minor.Description = description; minor.Hours = hours; return minor; }