/// <summary> /// Deprecated Method for adding a new object to the RewardCards EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRewardCards(RewardCard rewardCard) { base.AddObject("RewardCards", rewardCard); }
/// <summary> /// Create a new RewardCard object. /// </summary> /// <param name="rewardCardId">Initial value of the RewardCardId property.</param> /// <param name="rewardPoints">Initial value of the RewardPoints property.</param> /// <param name="rewardDescription">Initial value of the RewardDescription property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="isAvailable">Initial value of the IsAvailable property.</param> public static RewardCard CreateRewardCard(global::System.Int32 rewardCardId, global::System.Decimal rewardPoints, global::System.String rewardDescription, global::System.Decimal unitPrice, global::System.Boolean isAvailable) { RewardCard rewardCard = new RewardCard(); rewardCard.RewardCardId = rewardCardId; rewardCard.RewardPoints = rewardPoints; rewardCard.RewardDescription = rewardDescription; rewardCard.UnitPrice = unitPrice; rewardCard.IsAvailable = isAvailable; return rewardCard; }