/// <summary> Initializes the class members</summary> private void InitClassMembers() { _treatments = new EPICCentralDL.CollectionClasses.TreatmentCollection(); _treatments.SetContainingEntityInfo(this, "Patient"); _locationReturnsNewIfNotFound = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _calibrations = new EPICCentralDL.CollectionClasses.CalibrationCollection(); _calibrations.SetContainingEntityInfo(this, "ImageSet"); _treatments = new EPICCentralDL.CollectionClasses.TreatmentCollection(); _treatments.SetContainingEntityInfo(this, "ImageSet"); _treatments_ = new EPICCentralDL.CollectionClasses.TreatmentCollection(); _treatments_.SetContainingEntityInfo(this, "ImageSet_"); PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected PatientEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _treatments = (EPICCentralDL.CollectionClasses.TreatmentCollection)info.GetValue("_treatments", typeof(EPICCentralDL.CollectionClasses.TreatmentCollection)); _alwaysFetchTreatments = info.GetBoolean("_alwaysFetchTreatments"); _alreadyFetchedTreatments = info.GetBoolean("_alreadyFetchedTreatments"); _location = (LocationEntity)info.GetValue("_location", typeof(LocationEntity)); if (_location != null) { _location.AfterSave += new EventHandler(OnEntityAfterSave); } _locationReturnsNewIfNotFound = info.GetBoolean("_locationReturnsNewIfNotFound"); _alwaysFetchLocation = info.GetBoolean("_alwaysFetchLocation"); _alreadyFetchedLocation = info.GetBoolean("_alreadyFetchedLocation"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected ImageSetEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _calibrations = (EPICCentralDL.CollectionClasses.CalibrationCollection)info.GetValue("_calibrations", typeof(EPICCentralDL.CollectionClasses.CalibrationCollection)); _alwaysFetchCalibrations = info.GetBoolean("_alwaysFetchCalibrations"); _alreadyFetchedCalibrations = info.GetBoolean("_alreadyFetchedCalibrations"); _treatments = (EPICCentralDL.CollectionClasses.TreatmentCollection)info.GetValue("_treatments", typeof(EPICCentralDL.CollectionClasses.TreatmentCollection)); _alwaysFetchTreatments = info.GetBoolean("_alwaysFetchTreatments"); _alreadyFetchedTreatments = info.GetBoolean("_alreadyFetchedTreatments"); _treatments_ = (EPICCentralDL.CollectionClasses.TreatmentCollection)info.GetValue("_treatments_", typeof(EPICCentralDL.CollectionClasses.TreatmentCollection)); _alwaysFetchTreatments_ = info.GetBoolean("_alwaysFetchTreatments_"); _alreadyFetchedTreatments_ = info.GetBoolean("_alreadyFetchedTreatments_"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }