protected DocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _snRelationships = (EntityCollection <SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection <SnRelationshipEntity>)); _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if (_aspnetUsers != null) { _aspnetUsers.AfterSave += new EventHandler(OnEntityAfterSave); } _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if (_language != null) { _language.AfterSave += new EventHandler(OnEntityAfterSave); } _page = (PageEntity)info.GetValue("_page", typeof(PageEntity)); if (_page != null) { _page.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 _language</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncLanguage(IEntityCore relatedEntity) { if (_language != relatedEntity) { DesetupSyncLanguage(true, true); _language = (LanguageEntity)relatedEntity; this.PerformSetupSyncRelatedEntity(_language, new PropertyChangedEventHandler(OnLanguagePropertyChanged), "Language", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsItemLocalizationRelations.LanguageEntityUsingLanguageIdStatic, true, new string[] { }); } }
protected NewsMetaIgnoredWordEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if (_language != null) { _language.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 _language</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncLanguage(IEntityCore relatedEntity) { if(_language!=relatedEntity) { DesetupSyncLanguage(true, true); _language = (LanguageEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _language, new PropertyChangedEventHandler( OnLanguagePropertyChanged ), "Language", MonoSoftware.MonoX.DAL.RelationClasses.StaticPageLocalizationRelations.LanguageEntityUsingLanguageIdStatic, true, new string[] { } ); } }
/// <summary> Removes the sync logic for member _language</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 DesetupSyncLanguage(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _language, new PropertyChangedEventHandler( OnLanguagePropertyChanged ), "Language", MonoSoftware.MonoX.DAL.RelationClasses.StaticPageLocalizationRelations.LanguageEntityUsingLanguageIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)PageLocalizationFieldIndex.LanguageId } ); _language = null; }
protected PageLocalizationEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if(_language!=null) { _language.AfterSave+=new EventHandler(OnEntityAfterSave); } _page = (PageEntity)info.GetValue("_page", typeof(PageEntity)); if(_page!=null) { _page.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 _language</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 DesetupSyncLanguage(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity(_language, new PropertyChangedEventHandler(OnLanguagePropertyChanged), "Language", MonoSoftware.MonoX.DAL.RelationClasses.StaticNewsItemLocalizationRelations.LanguageEntityUsingLanguageIdStatic, true, signalRelatedEntity, "", resetFKFields, new int[] { (int)NewsItemLocalizationFieldIndex.LanguageId }); _language = 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 }
protected DocumentEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>)); _aspnetUsers = (AspnetUsersEntity)info.GetValue("_aspnetUsers", typeof(AspnetUsersEntity)); if(_aspnetUsers!=null) { _aspnetUsers.AfterSave+=new EventHandler(OnEntityAfterSave); } _language = (LanguageEntity)info.GetValue("_language", typeof(LanguageEntity)); if(_language!=null) { _language.AfterSave+=new EventHandler(OnEntityAfterSave); } _page = (PageEntity)info.GetValue("_page", typeof(PageEntity)); if(_page!=null) { _page.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected BlogEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _blogCategory = (EntityCollection<BlogCategoryEntity>)info.GetValue("_blogCategory", typeof(EntityCollection<BlogCategoryEntity>)); _blogEditors = (EntityCollection<BlogEditorEntity>)info.GetValue("_blogEditors", typeof(EntityCollection<BlogEditorEntity>)); _blogPosts = (EntityCollection<BlogPostEntity>)info.GetValue("_blogPosts", typeof(EntityCollection<BlogPostEntity>)); _snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>)); _aspnetApplication = (AspnetApplicationsEntity)info.GetValue("_aspnetApplication", typeof(AspnetApplicationsEntity)); if(_aspnetApplication!=null) { _aspnetApplication.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); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }