/// <summary> setups the sync logic for member _physicianEvaluation</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPhysicianEvaluation(IEntity2 relatedEntity) { if (_physicianEvaluation != relatedEntity) { DesetupSyncPhysicianEvaluation(true, true); _physicianEvaluation = (PhysicianEvaluationEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_physicianEvaluation, new PropertyChangedEventHandler(OnPhysicianEvaluationPropertyChanged), "PhysicianEvaluation", PhysicianEarningsEntity.Relations.PhysicianEvaluationEntityUsingPhysicianEvaluationId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _physicianEvaluation = null; _physicianProfile = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected PhysicianEarningsEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _physicianEvaluation = (PhysicianEvaluationEntity)info.GetValue("_physicianEvaluation", typeof(PhysicianEvaluationEntity)); if (_physicianEvaluation != null) { _physicianEvaluation.AfterSave += new EventHandler(OnEntityAfterSave); } _physicianProfile = (PhysicianProfileEntity)info.GetValue("_physicianProfile", typeof(PhysicianProfileEntity)); if (_physicianProfile != null) { _physicianProfile.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _physicianEvaluation</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncPhysicianEvaluation(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_physicianEvaluation, new PropertyChangedEventHandler(OnPhysicianEvaluationPropertyChanged), "PhysicianEvaluation", PhysicianEarningsEntity.Relations.PhysicianEvaluationEntityUsingPhysicianEvaluationId, true, signalRelatedEntity, "PhysicianEarnings", resetFKFields, new int[] { (int)PhysicianEarningsFieldIndex.PhysicianEvaluationId }); _physicianEvaluation = null; }