Ejemplo n.º 1
0
 /// <summary> setups the sync logic for member _trgovanjeVrsta</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncTrgovanjeVrsta(IEntityCore relatedEntity)
 {
     if(_trgovanjeVrsta!=relatedEntity)
     {
         DesetupSyncTrgovanjeVrsta(true, true);
         _trgovanjeVrsta = (TrgovanjeVrstaRoEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _trgovanjeVrsta, new PropertyChangedEventHandler( OnTrgovanjeVrstaPropertyChanged ), "TrgovanjeVrsta", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticTrgovanjeStavkaHnbRelations.TrgovanjeVrstaRoEntityUsingTrgovanjeVrstaIdStatic, true, new string[] {  } );
     }
 }
Ejemplo n.º 2
0
 protected TrgovanjeStavkaHnbEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _trgovanjeGlavaHnb = (TrgovanjeGlavaHnbEntity)info.GetValue("_trgovanjeGlavaHnb", typeof(TrgovanjeGlavaHnbEntity));
         if(_trgovanjeGlavaHnb!=null)
         {
             _trgovanjeGlavaHnb.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _trgovanjeVrsta = (TrgovanjeVrstaRoEntity)info.GetValue("_trgovanjeVrsta", typeof(TrgovanjeVrstaRoEntity));
         if(_trgovanjeVrsta!=null)
         {
             _trgovanjeVrsta.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Ejemplo n.º 3
0
 /// <summary> Removes the sync logic for member _trgovanjeVrsta</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 DesetupSyncTrgovanjeVrsta(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _trgovanjeVrsta, new PropertyChangedEventHandler( OnTrgovanjeVrstaPropertyChanged ), "TrgovanjeVrsta", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticTrgovanjeStavkaHnbRelations.TrgovanjeVrstaRoEntityUsingTrgovanjeVrstaIdStatic, true, signalRelatedEntity, "TrgovanjeStavkaHnbCollection", resetFKFields, new int[] { (int)TrgovanjeStavkaHnbFieldIndex.TrgovanjeVrstaId } );
     _trgovanjeVrsta = null;
 }
Ejemplo n.º 4
0
 public static TrgovanjeVrstaRoEntity FetchTrgovanjeVrstaRo(DataAccessAdapterBase adapter, PrefetchPath2 prefetchPath, long TrgovanjeVrstaRoId)
 {
     TrgovanjeVrstaRoEntity _TrgovanjeVrstaRoEntity = new TrgovanjeVrstaRoEntity(TrgovanjeVrstaRoId);
     adapter.FetchEntity(_TrgovanjeVrstaRoEntity, prefetchPath);
     return _TrgovanjeVrstaRoEntity;
 }