コード例 #1
0
        public static FirmaEntity FetchFirma(DataAccessAdapterBase adapter, PrefetchPath2 prefetchPath, long FirmaId)
        {
            FirmaEntity _FirmaEntity = new FirmaEntity(FirmaId);

            adapter.FetchEntity(_FirmaEntity, prefetchPath);
            return(_FirmaEntity);
        }
コード例 #2
0
 /// <summary> setups the sync logic for member _firma</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncFirma(IEntityCore relatedEntity)
 {
     if (_firma != relatedEntity)
     {
         DesetupSyncFirma(true, true);
         _firma = (FirmaEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_firma, new PropertyChangedEventHandler(OnFirmaPropertyChanged), "Firma", NinjaSoftware.EnioNg.CoolJ.RelationClasses.StaticPartnerRelations.FirmaEntityUsingFirmaIdStatic, true, new string[] {  });
     }
 }
コード例 #3
0
 protected ConfigEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _firma = (FirmaEntity)info.GetValue("_firma", typeof(FirmaEntity));
         if (_firma != null)
         {
             _firma.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #4
0
 protected ArtiklEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _racunStavkaCollection = (EntityCollection <RacunStavkaEntity>)info.GetValue("_racunStavkaCollection", typeof(EntityCollection <RacunStavkaEntity>));
         _firma = (FirmaEntity)info.GetValue("_firma", typeof(FirmaEntity));
         if (_firma != null)
         {
             _firma.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _pdv = (PdvEntity)info.GetValue("_pdv", typeof(PdvEntity));
         if (_pdv != null)
         {
             _pdv.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #5
0
 /// <summary> Removes the sync logic for member _firma</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 DesetupSyncFirma(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_firma, new PropertyChangedEventHandler(OnFirmaPropertyChanged), "Firma", NinjaSoftware.EnioNg.CoolJ.RelationClasses.StaticPartnerRelations.FirmaEntityUsingFirmaIdStatic, true, signalRelatedEntity, "PartnerCollection", resetFKFields, new int[] { (int)PartnerFieldIndex.FirmaId });
     _firma = null;
 }