/// <summary> /// Create a new Gift object. /// </summary> /// <param name="giftId">Initial value of GiftId.</param> /// <param name="departmentId">Initial value of DepartmentId.</param> public static Gift CreateGift(long giftId, long departmentId) { Gift gift = new Gift(); gift.GiftId = giftId; gift.DepartmentId = departmentId; return gift; }
/// <summary> /// Deprecated Method for adding a new object to the Gifts EntitySet. /// </summary> public void AddToGifts(Gift gift) { base.AddObject("Gifts", gift); }