Example #1
0
 public static RokTipRoEntity FetchRokTipRo(DataAccessAdapterBase adapter, PrefetchPath2 prefetchPath, long RokTipRoId)
 {
     RokTipRoEntity _RokTipRoEntity = new RokTipRoEntity(RokTipRoId);
     adapter.FetchEntity(_RokTipRoEntity, prefetchPath);
     return _RokTipRoEntity;
 }
Example #2
0
 /// <summary> Removes the sync logic for member _rokTip</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 DesetupSyncRokTip(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _rokTip, new PropertyChangedEventHandler( OnRokTipPropertyChanged ), "RokTip", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticRokRelations.RokTipRoEntityUsingRokTipIdStatic, true, signalRelatedEntity, "RokCollection", resetFKFields, new int[] { (int)RokFieldIndex.RokTipId } );
     _rokTip = null;
 }
Example #3
0
 /// <summary> setups the sync logic for member _rokTip</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncRokTip(IEntityCore relatedEntity)
 {
     if(_rokTip!=relatedEntity)
     {
         DesetupSyncRokTip(true, true);
         _rokTip = (RokTipRoEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _rokTip, new PropertyChangedEventHandler( OnRokTipPropertyChanged ), "RokTip", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticRokRelations.RokTipRoEntityUsingRokTipIdStatic, true, new string[] {  } );
     }
 }
Example #4
0
 protected RokEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _trgovanjeStavkaCollection = (EntityCollection<TrgovanjeStavkaEntity>)info.GetValue("_trgovanjeStavkaCollection", typeof(EntityCollection<TrgovanjeStavkaEntity>));
         _rokTip = (RokTipRoEntity)info.GetValue("_rokTip", typeof(RokTipRoEntity));
         if(_rokTip!=null)
         {
             _rokTip.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }