/// <summary> setups the sync logic for member _privacyLevel</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPrivacyLevel(IEntityCore relatedEntity) { if (_privacyLevel != relatedEntity) { DesetupSyncPrivacyLevel(true, true); _privacyLevel = (PrivacyLevelEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_privacyLevel, new PropertyChangedEventHandler(OnPrivacyLevelPropertyChanged), "PrivacyLevel", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.PrivacyLevelEntityUsingPrivacyLevelIdStatic, true, new string[] { }); } }
protected PrivacyLevelDefinitionEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if (_aspnetUsers != null) { _aspnetUsers.AfterSave += new EventHandler(OnEntityAfterSave); } _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity)); if (_privacyLevel != null) { _privacyLevel.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _privacyLevel</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPrivacyLevel(IEntityCore relatedEntity) { if(_privacyLevel!=relatedEntity) { DesetupSyncPrivacyLevel(true, true); _privacyLevel = (PrivacyLevelEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _privacyLevel, new PropertyChangedEventHandler( OnPrivacyLevelPropertyChanged ), "PrivacyLevel", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.PrivacyLevelEntityUsingPrivacyLevelIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _privacyLevel</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 DesetupSyncPrivacyLevel(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _privacyLevel, new PropertyChangedEventHandler( OnPrivacyLevelPropertyChanged ), "PrivacyLevel", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.PrivacyLevelEntityUsingPrivacyLevelIdStatic, true, signalRelatedEntity, "PrivacyLevelDefinitions", resetFKFields, new int[] { (int)PrivacyLevelDefinitionFieldIndex.PrivacyLevelId } ); _privacyLevel = null; }
protected PrivacyLevelDefinitionEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if(_aspnetUsers!=null) { _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity)); if(_privacyLevel!=null) { _privacyLevel.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _privacyLevel</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 DesetupSyncPrivacyLevel(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_privacyLevel, new PropertyChangedEventHandler(OnPrivacyLevelPropertyChanged), "PrivacyLevel", MonoSoftware.MonoX.DAL.RelationClasses.StaticPrivacyLevelDefinitionRelations.PrivacyLevelEntityUsingPrivacyLevelIdStatic, true, signalRelatedEntity, "PrivacyLevelDefinitions", resetFKFields, new int[] { (int)PrivacyLevelDefinitionFieldIndex.PrivacyLevelId }); _privacyLevel = null; }
protected SnAlbumEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _snEvents = (EntityCollection<SnEventEntity>)info.GetValue("_snEvents", typeof(EntityCollection<SnEventEntity>)); _snFiles = (EntityCollection<SnFileEntity>)info.GetValue("_snFiles", typeof(EntityCollection<SnFileEntity>)); _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>)); _aspnetApplications = (AspnetApplicationsEntity)info.GetValue("_aspnetApplications", typeof(AspnetApplicationsEntity)); if(_aspnetApplications!=null) { _aspnetApplications.AfterSave+=new EventHandler(OnEntityAfterSave); } _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity)); if(_aspnetUser!=null) { _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave); } _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if(_language!=null) { _language.AfterSave+=new EventHandler(OnEntityAfterSave); } _privacyLevel = (PrivacyLevelEntity)info.GetValue("_privacyLevel", typeof(PrivacyLevelEntity)); if(_privacyLevel!=null) { _privacyLevel.AfterSave+=new EventHandler(OnEntityAfterSave); } _snGroup = (SnGroupEntity)info.GetValue("_snGroup", typeof(SnGroupEntity)); if(_snGroup!=null) { _snGroup.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }