/// <summary> /// Deprecated Method for adding a new object to the MembershipGroups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMembershipGroups(MembershipGroup membershipGroup) { base.AddObject("MembershipGroups", membershipGroup); }
private void SetCategoryGroupDefaults(MembershipCategoryGroupDefault membershipCategoryGroupDefault, MembershipGroup membershipGroup) { membershipCategoryGroupDefault.Description = membershipGroup.Description; membershipCategoryGroupDefault.MemberOnBankHolidays = membershipGroup.MemberOnBankHolidays; membershipCategoryGroupDefault.MemberAtChristmasWeek = membershipGroup.MemberAtChristmasWeek; membershipCategoryGroupDefault.IsMonAvailable = membershipGroup.IsMonAvailable; membershipCategoryGroupDefault.IsTuesAvailable = membershipGroup.IsTuesAvailable; membershipCategoryGroupDefault.IsWedAvailable = membershipGroup.IsWedAvailable; membershipCategoryGroupDefault.IsThursAvailable = membershipGroup.IsThursAvailable; membershipCategoryGroupDefault.IsFriAvailable = membershipGroup.IsFriAvailable; membershipCategoryGroupDefault.IsSatAvailable = membershipGroup.IsSatAvailable; membershipCategoryGroupDefault.IsSunAvailable = membershipGroup.IsSunAvailable; membershipCategoryGroupDefault.Token1 = membershipGroup.Token1; membershipCategoryGroupDefault.Token2 = membershipGroup.Token2; membershipCategoryGroupDefault.Token3 = membershipGroup.Token3; membershipCategoryGroupDefault.Token4 = membershipGroup.Token4; membershipCategoryGroupDefault.Token5 = membershipGroup.Token5; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.AllowedClubCard = membershipGroup.MembershipGroupEPOS.AllowedClubCard; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.OverdraftLimit1 = membershipGroup.MembershipGroupEPOS.OverdraftLimit1; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.OverdraftLimit2 = membershipGroup.MembershipGroupEPOS.OverdraftLimit2; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DiscountRateAll = membershipGroup.MembershipGroupEPOS.DiscountRateAll; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DiscountRate1 = membershipGroup.MembershipGroupEPOS.DiscountRate1; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DiscountRate2 = membershipGroup.MembershipGroupEPOS.DiscountRate2; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DiscountRate3 = membershipGroup.MembershipGroupEPOS.DiscountRate3; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DiscountRate4 = membershipGroup.MembershipGroupEPOS.DiscountRate4; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DiscountRate5 = membershipGroup.MembershipGroupEPOS.DiscountRate5; membershipCategoryGroupDefault.MembershipCategoryGroupDefaultEPOS.DisplayMessage = membershipGroup.MembershipGroupEPOS.DisplayMessage; }
/// <summary> /// Create a new MembershipGroup object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="memberOnBankHolidays">Initial value of the MemberOnBankHolidays property.</param> /// <param name="memberAtChristmasWeek">Initial value of the MemberAtChristmasWeek property.</param> /// <param name="isMonAvailable">Initial value of the IsMonAvailable property.</param> /// <param name="isTuesAvailable">Initial value of the IsTuesAvailable property.</param> /// <param name="isWedAvailable">Initial value of the IsWedAvailable property.</param> /// <param name="isThursAvailable">Initial value of the IsThursAvailable property.</param> /// <param name="isFriAvailable">Initial value of the IsFriAvailable property.</param> /// <param name="isSatAvailable">Initial value of the IsSatAvailable property.</param> /// <param name="isSunAvailable">Initial value of the IsSunAvailable property.</param> public static MembershipGroup CreateMembershipGroup(global::System.Guid id, global::System.String name, global::System.Boolean memberOnBankHolidays, global::System.Boolean memberAtChristmasWeek, global::System.Boolean isMonAvailable, global::System.Boolean isTuesAvailable, global::System.Boolean isWedAvailable, global::System.Boolean isThursAvailable, global::System.Boolean isFriAvailable, global::System.Boolean isSatAvailable, global::System.Boolean isSunAvailable) { MembershipGroup membershipGroup = new MembershipGroup(); membershipGroup.ID = id; membershipGroup.Name = name; membershipGroup.MemberOnBankHolidays = memberOnBankHolidays; membershipGroup.MemberAtChristmasWeek = memberAtChristmasWeek; membershipGroup.IsMonAvailable = isMonAvailable; membershipGroup.IsTuesAvailable = isTuesAvailable; membershipGroup.IsWedAvailable = isWedAvailable; membershipGroup.IsThursAvailable = isThursAvailable; membershipGroup.IsFriAvailable = isFriAvailable; membershipGroup.IsSatAvailable = isSatAvailable; membershipGroup.IsSunAvailable = isSunAvailable; return membershipGroup; }
public MembershipGroupModel(MembershipGroup membershipGroup) { _membershipGroup = membershipGroup; }