Beispiel #1
0
 public override void GetNavigationLoadPlans(
     DataSession session,
     LoadPlan sourcePlan,
     LoadPlanList navigationPlans)
 {
     sourcePlan.EnsureProperty(sourcePlan.Class.Properties.Need(this.FAssociationPropertyName));
     for (int index = 0; index < sourcePlan.Links.Count; ++index)
     {
         AssociationRefLoadPlan link = sourcePlan.Links[index];
         if (!(link.Ref.Association.Property.Name != this.FAssociationPropertyName))
         {
             if (this.FRefClass != null && link.Ref.RefClass != this.FRefClass)
             {
                 break;
             }
             navigationPlans.Add(link.Plan);
         }
     }
 }
Beispiel #2
0
        public override void PrepareLoadPlan(LoadPlan plan, DataSession session)
        {
            LoadPlanList loadPlanList1 = new LoadPlanList();

            loadPlanList1.Add(plan);
            LoadPlanList loadPlanList2 = loadPlanList1;

            foreach (Navigator navigator in this.FNavigation)
            {
                LoadPlanList navigationPlans = new LoadPlanList();
                foreach (LoadPlan sourcePlan in (List <LoadPlan>)loadPlanList2)
                {
                    navigator.GetNavigationLoadPlans(session, sourcePlan, navigationPlans);
                }
                loadPlanList2 = navigationPlans;
            }
            foreach (LoadPlan plan1 in (List <LoadPlan>)loadPlanList2)
            {
                this.FMemberValueGetter.PrepareLoadPlan(plan1, session);
            }
        }