Пример #1
0
 public static EntityRoEntity FetchEntityRo(DataAccessAdapterBase adapter, PrefetchPath2 prefetchPath, long EntityRoId)
 {
     EntityRoEntity _EntityRoEntity = new EntityRoEntity(EntityRoId);
     adapter.FetchEntity(_EntityRoEntity, prefetchPath);
     return _EntityRoEntity;
 }
Пример #2
0
 /// <summary> Removes the sync logic for member _entity</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 DesetupSyncEntity(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _entity, new PropertyChangedEventHandler( OnEntityPropertyChanged ), "Entity", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticAuditInfoRelations.EntityRoEntityUsingEntityIdStatic, true, signalRelatedEntity, "AuditInfoCollection", resetFKFields, new int[] { (int)AuditInfoFieldIndex.EntityId } );
     _entity = null;
 }
Пример #3
0
 /// <summary> setups the sync logic for member _entity</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncEntity(IEntityCore relatedEntity)
 {
     if(_entity!=relatedEntity)
     {
         DesetupSyncEntity(true, true);
         _entity = (EntityRoEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _entity, new PropertyChangedEventHandler( OnEntityPropertyChanged ), "Entity", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticAuditInfoRelations.EntityRoEntityUsingEntityIdStatic, true, new string[] {  } );
     }
 }
Пример #4
0
 protected AuditInfoEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _auditInfoActionType = (AuditInfoActionTypeRoEntity)info.GetValue("_auditInfoActionType", typeof(AuditInfoActionTypeRoEntity));
         if(_auditInfoActionType!=null)
         {
             _auditInfoActionType.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _entity = (EntityRoEntity)info.GetValue("_entity", typeof(EntityRoEntity));
         if(_entity!=null)
         {
             _entity.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _user = (UserEntity)info.GetValue("_user", typeof(UserEntity));
         if(_user!=null)
         {
             _user.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }