public static SistemskaInstancaPodatakaRoEntity FetchSistemskaInstancaPodatakaRo(DataAccessAdapterBase adapter, PrefetchPath2 prefetchPath, long SistemskaInstancaPodatakaRoId) { SistemskaInstancaPodatakaRoEntity _SistemskaInstancaPodatakaRoEntity = new SistemskaInstancaPodatakaRoEntity(SistemskaInstancaPodatakaRoId); adapter.FetchEntity(_SistemskaInstancaPodatakaRoEntity, prefetchPath); return _SistemskaInstancaPodatakaRoEntity; }
/// <summary> Removes the sync logic for member _sistemskaInstancaPodataka</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 DesetupSyncSistemskaInstancaPodataka(bool signalRelatedEntity, bool resetFKFields) { this.PerformDesetupSyncRelatedEntity( _sistemskaInstancaPodataka, new PropertyChangedEventHandler( OnSistemskaInstancaPodatakaPropertyChanged ), "SistemskaInstancaPodataka", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticHtmlPageRelations.SistemskaInstancaPodatakaRoEntityUsingSistemskaInstancaPodatakaIdStatic, true, signalRelatedEntity, "HtmlPageCollection", resetFKFields, new int[] { (int)HtmlPageFieldIndex.SistemskaInstancaPodatakaId } ); _sistemskaInstancaPodataka = null; }
/// <summary> setups the sync logic for member _sistemskaInstancaPodataka</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncSistemskaInstancaPodataka(IEntityCore relatedEntity) { if(_sistemskaInstancaPodataka!=relatedEntity) { DesetupSyncSistemskaInstancaPodataka(true, true); _sistemskaInstancaPodataka = (SistemskaInstancaPodatakaRoEntity)relatedEntity; this.PerformSetupSyncRelatedEntity( _sistemskaInstancaPodataka, new PropertyChangedEventHandler( OnSistemskaInstancaPodatakaPropertyChanged ), "SistemskaInstancaPodataka", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticHtmlPageRelations.SistemskaInstancaPodatakaRoEntityUsingSistemskaInstancaPodatakaIdStatic, true, new string[] { } ); } }
protected HtmlPageEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if(SerializationHelper.Optimization != SerializationOptimization.Fast) { _sistemskaInstancaPodataka = (SistemskaInstancaPodatakaRoEntity)info.GetValue("_sistemskaInstancaPodataka", typeof(SistemskaInstancaPodatakaRoEntity)); if(_sistemskaInstancaPodataka!=null) { _sistemskaInstancaPodataka.AfterSave+=new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }