Exemple #1
0
 private void Child_Fetch(DataAccess.DataModels.Child child)
 {
     using (BypassPropertyChecks)
     {
         Id                        = child.Id;
         ChildDetails              = DataPortal.FetchChild <ChildDetails>(child.ChildDetails);
         PhysicalDetails           = DataPortal.FetchChild <PhysicalDetails>(child.PhysicalDetails);
         DistinguishingFeatures    = DataPortal.FetchChild <DistinguishingFeatureList>(child.DistinguishingFeatures);
         ProfessionalCareProviders = DataPortal.FetchChild <CareProviderList>(child.ProfessionalCareProviders);
         FamilyMembers             = DataPortal.FetchChild <FamilyMemberList>(child.FamilyMembers);
         Friends                   = DataPortal.FetchChild <FriendList>(child.Friends);
         MedicalNotes              = DataPortal.FetchChild <MedicalNotes>(child.MedicalNotes);
         Checklist                 = DataPortal.FetchChild <PreparationChecklist>(child.Checklist);
         Documents                 = DataPortal.FetchChild <FileReferenceList>(child.Documents);
         Photos                    = DataPortal.FetchChild <FileReferenceList>(child.Photos);
     }
 }
Exemple #2
0
 protected override void Child_Create()
 {
     using (BypassPropertyChecks)
     {
         ChildDetails              = DataPortal.CreateChild <ChildDetails>();
         PhysicalDetails           = DataPortal.CreateChild <PhysicalDetails>();
         DistinguishingFeatures    = DataPortal.CreateChild <DistinguishingFeatureList>();
         ProfessionalCareProviders = DataPortal.CreateChild <CareProviderList>();
         FamilyMembers             = DataPortal.CreateChild <FamilyMemberList>();
         Friends      = DataPortal.CreateChild <FriendList>();
         MedicalNotes = DataPortal.CreateChild <MedicalNotes>();
         Checklist    = DataPortal.CreateChild <PreparationChecklist>();
         Documents    = DataPortal.CreateChild <FileReferenceList>();
         Photos       = DataPortal.CreateChild <FileReferenceList>();
     }
     base.Child_Create();
     return;
 }