protected PodDefaultTeamEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _organizationRoleUser = (OrganizationRoleUserEntity)info.GetValue("_organizationRoleUser", typeof(OrganizationRoleUserEntity)); if (_organizationRoleUser != null) { _organizationRoleUser.AfterSave += new EventHandler(OnEntityAfterSave); } _podDetails = (PodDetailsEntity)info.GetValue("_podDetails", typeof(PodDetailsEntity)); if (_podDetails != null) { _podDetails.AfterSave += new EventHandler(OnEntityAfterSave); } _staffEventRole = (StaffEventRoleEntity)info.GetValue("_staffEventRole", typeof(StaffEventRoleEntity)); if (_staffEventRole != null) { _staffEventRole.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _staffEventRole</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncStaffEventRole(IEntity2 relatedEntity) { if (_staffEventRole != relatedEntity) { DesetupSyncStaffEventRole(true, true); _staffEventRole = (StaffEventRoleEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_staffEventRole, new PropertyChangedEventHandler(OnStaffEventRolePropertyChanged), "StaffEventRole", StaffEventRoleTestEntity.Relations.StaffEventRoleEntityUsingStaffEventRoleId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _staffEventRole = null; _test = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _organizationRoleUser = null; _podDetails = null; _staffEventRole = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected StaffEventRoleTestEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _staffEventRole = (StaffEventRoleEntity)info.GetValue("_staffEventRole", typeof(StaffEventRoleEntity)); if (_staffEventRole != null) { _staffEventRole.AfterSave += new EventHandler(OnEntityAfterSave); } _test = (TestEntity)info.GetValue("_test", typeof(TestEntity)); if (_test != null) { _test.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 _staffEventRole</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 DesetupSyncStaffEventRole(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_staffEventRole, new PropertyChangedEventHandler(OnStaffEventRolePropertyChanged), "StaffEventRole", StaffEventRoleTestEntity.Relations.StaffEventRoleEntityUsingStaffEventRoleId, true, signalRelatedEntity, "StaffEventRoleTest", resetFKFields, new int[] { (int)StaffEventRoleTestFieldIndex.StaffEventRoleId }); _staffEventRole = null; }