public bool SetDataRoot(global::System.Object newDataRoot)
 {
     if (newDataRoot != null)
     {
         this.dataRoot = (global::AdmissionsManager.Model.Patient)newDataRoot;
         return(true);
     }
     return(false);
 }
 // Update methods for each path node used in binding steps.
 private void Update_(global::AdmissionsManager.Model.Patient obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_PrimaryKey(obj.PrimaryKey, phase);
             this.Update_Surname(obj.Surname, phase);
             this.Update_Name(obj.Name, phase);
             this.Update_BirthDate(obj.BirthDate, phase);
             this.Update_PatientState(obj.PatientState, phase);
             this.Update_PatientSex(obj.PatientSex, phase);
         }
     }
 }