コード例 #1
0
        private void LoadFromModel(StudentContactRelationship model)
        {
            RelationshipTypeId     = model.RelationshipTypeId;
            StudentId              = model.StudentId;
            ContactId              = model.ContactId;
            Correspondence         = model.Correspondence;
            ParentalResponsibility = model.ParentalResponsibility;
            PupilReport            = model.PupilReport;
            CourtOrder             = model.CourtOrder;

            if (model.RelationshipType != null)
            {
                RelationshipType = new RelationshipTypeModel(model.RelationshipType);
            }

            if (model.Student != null)
            {
                Student = new StudentModel(model.Student);
            }

            if (model.Contact != null)
            {
                Contact = new ContactModel(model.Contact);
            }
        }
コード例 #2
0
        private void LoadFromModel(StudentAgentRelationship model)
        {
            StudentId          = model.StudentId;
            AgentId            = model.AgentId;
            RelationshipTypeId = model.RelationshipTypeId;

            if (model.Student != null)
            {
                Student = new StudentModel(model.Student);
            }

            if (model.Agent != null)
            {
                Agent = new AgentModel(model.Agent);
            }

            if (model.RelationshipType != null)
            {
                RelationshipType = new RelationshipTypeModel(model.RelationshipType);
            }
        }