/// <summary> /// Create a new DiscountGroup object. /// </summary> /// <param name="discountGroupId">Initial value of the DiscountGroupId property.</param> /// <param name="discountGroupName">Initial value of the DiscountGroupName property.</param> /// <param name="discountPercentage">Initial value of the DiscountPercentage property.</param> public static DiscountGroup CreateDiscountGroup(global::System.Int32 discountGroupId, global::System.String discountGroupName, global::System.Byte discountPercentage) { DiscountGroup discountGroup = new DiscountGroup(); discountGroup.DiscountGroupId = discountGroupId; discountGroup.DiscountGroupName = discountGroupName; discountGroup.DiscountPercentage = discountPercentage; return(discountGroup); }
/// <summary> /// Create a new DiscountGroup object. /// </summary> /// <param name="discountGroupId">Initial value of the DiscountGroupId property.</param> /// <param name="discountGroupName">Initial value of the DiscountGroupName property.</param> /// <param name="discountPercentage">Initial value of the DiscountPercentage property.</param> public static DiscountGroup CreateDiscountGroup(global::System.Int32 discountGroupId, global::System.String discountGroupName, global::System.Byte discountPercentage) { DiscountGroup discountGroup = new DiscountGroup(); discountGroup.DiscountGroupId = discountGroupId; discountGroup.DiscountGroupName = discountGroupName; discountGroup.DiscountPercentage = discountPercentage; return discountGroup; }
/// <summary> /// Deprecated Method for adding a new object to the DiscountGroups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDiscountGroups(DiscountGroup discountGroup) { base.AddObject("DiscountGroups", discountGroup); }