/// <summary> Removes the sync logic for member _aspnetPaths</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 DesetupSyncAspnetPaths(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _aspnetPaths, new PropertyChangedEventHandler( OnAspnetPathsPropertyChanged ), "AspnetPaths", MonoSoftware.MonoX.DAL.RelationClasses.StaticAspnetPersonalizationAllUsersRelations.AspnetPathsEntityUsingPathIdStatic, true, signalRelatedEntity, "AspnetPersonalizationAllUsers", false, new int[] { (int)AspnetPersonalizationAllUsersFieldIndex.PathId } ); _aspnetPaths = null; }
/// <summary> setups the sync logic for member _aspnetPaths</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncAspnetPaths(IEntityCore relatedEntity) { if(_aspnetPaths!=relatedEntity) { DesetupSyncAspnetPaths(true, true); _aspnetPaths = (AspnetPathsEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _aspnetPaths, new PropertyChangedEventHandler( OnAspnetPathsPropertyChanged ), "AspnetPaths", MonoSoftware.MonoX.DAL.RelationClasses.StaticAspnetPersonalizationAllUsersRelations.AspnetPathsEntityUsingPathIdStatic, true, new string[] { } ); } }
protected AspnetPersonalizationAllUsersEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _aspnetPaths = (AspnetPathsEntity)info.GetValue("_aspnetPaths", typeof(AspnetPathsEntity)); if(_aspnetPaths!=null) { _aspnetPaths.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }