Пример #1
0
 /// <summary>
 /// Create a new MembershipCategory object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="currentCategory">Initial value of the CurrentCategory property.</param>
 /// <param name="membershipGroupStyleID">Initial value of the MembershipGroupStyleID property.</param>
 /// <param name="membershipGroupAgeID">Initial value of the MembershipGroupAgeID property.</param>
 /// <param name="membershipGroupID">Initial value of the MembershipGroupID property.</param>
 /// <param name="categoryType">Initial value of the CategoryType property.</param>
 /// <param name="gender">Initial value of the Gender property.</param>
 /// <param name="maxRoundsPerWeek">Initial value of the MaxRoundsPerWeek property.</param>
 /// <param name="maxRoundsPerMonth">Initial value of the MaxRoundsPerMonth property.</param>
 /// <param name="maxRoundsPerYear">Initial value of the MaxRoundsPerYear property.</param>
 public static MembershipCategory CreateMembershipCategory(global::System.Guid id, global::System.String name, global::System.Boolean currentCategory, global::System.Guid membershipGroupStyleID, global::System.Guid membershipGroupAgeID, global::System.Guid membershipGroupID, global::System.Int32 categoryType, global::System.Int32 gender, global::System.Int32 maxRoundsPerWeek, global::System.Int32 maxRoundsPerMonth, global::System.Int32 maxRoundsPerYear)
 {
     MembershipCategory membershipCategory = new MembershipCategory();
     membershipCategory.ID = id;
     membershipCategory.Name = name;
     membershipCategory.CurrentCategory = currentCategory;
     membershipCategory.MembershipGroupStyleID = membershipGroupStyleID;
     membershipCategory.MembershipGroupAgeID = membershipGroupAgeID;
     membershipCategory.MembershipGroupID = membershipGroupID;
     membershipCategory.CategoryType = categoryType;
     membershipCategory.Gender = gender;
     membershipCategory.MaxRoundsPerWeek = maxRoundsPerWeek;
     membershipCategory.MaxRoundsPerMonth = maxRoundsPerMonth;
     membershipCategory.MaxRoundsPerYear = maxRoundsPerYear;
     return membershipCategory;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the MembershipCategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMembershipCategories(MembershipCategory membershipCategory)
 {
     base.AddObject("MembershipCategories", membershipCategory);
 }
Пример #3
0
        public MembershipCategoryModel(MembershipCategory membershipCategory)
        {
            _membershipCategory = membershipCategory;
            //if (_membershipCategory.MembershipCategoryGroupDefaults.FirstOrDefault() != null)
            if (_membershipCategory.MembershipCategoryGroupDefault != null)
                MembershipCategoryGroupDefault = new MembershipCategoryGroupDefaultModel(_membershipCategory.MembershipCategoryGroupDefault);

            //if (_membershipCategory.MembershipFullPaymentComponents.FirstOrDefault() != null)
            if (_membershipCategory.MembershipFullPaymentComponent != null)
                MembershipFullPaymentComponent = new MembershipFullPaymentCostModel(_membershipCategory.MembershipFullPaymentComponent);

            //if (_membershipCategory.MembershipMonthlyPaymentUpFrontCosts.FirstOrDefault() != null)
            if (_membershipCategory.MembershipMonthlyPaymentUpFrontCost != null)
                MembershipMonthlyPaymentUpFrontCost = new MembershipMonthlyPaymentUpFrontCostModel(_membershipCategory.MembershipMonthlyPaymentUpFrontCost);

            //if (_membershipCategory.MembershipMonthlyPaymentOngoingCosts.FirstOrDefault() != null)
            if (_membershipCategory.MembershipMonthlyPaymentOngoingCost != null)
                MembershipMonthlyPaymentOngoingCost = new MembershipMonthlyPaymentOngoingCostModel(_membershipCategory.MembershipMonthlyPaymentOngoingCost);
        }