Esempio n. 1
0
 public static RoleRoEntity FetchRoleRo(DataAccessAdapterBase adapter, PrefetchPath2 prefetchPath, long RoleRoId)
 {
     RoleRoEntity _RoleRoEntity = new RoleRoEntity(RoleRoId);
     adapter.FetchEntity(_RoleRoEntity, prefetchPath);
     return _RoleRoEntity;
 }
Esempio n. 2
0
 /// <summary> Removes the sync logic for member _role</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 DesetupSyncRole(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _role, new PropertyChangedEventHandler( OnRolePropertyChanged ), "Role", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticUserRelations.RoleRoEntityUsingRoleIdStatic, true, signalRelatedEntity, "UserCollection", resetFKFields, new int[] { (int)UserFieldIndex.RoleId } );
     _role = null;
 }
Esempio n. 3
0
 /// <summary> setups the sync logic for member _role</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncRole(IEntityCore relatedEntity)
 {
     if(_role!=relatedEntity)
     {
         DesetupSyncRole(true, true);
         _role = (RoleRoEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _role, new PropertyChangedEventHandler( OnRolePropertyChanged ), "Role", NinjaSoftware.TrzisteNovca.CoolJ.RelationClasses.StaticUserRelations.RoleRoEntityUsingRoleIdStatic, true, new string[] {  } );
     }
 }
Esempio n. 4
0
 protected UserEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _auditInfoCollection = (EntityCollection<AuditInfoEntity>)info.GetValue("_auditInfoCollection", typeof(EntityCollection<AuditInfoEntity>));
         _role = (RoleRoEntity)info.GetValue("_role", typeof(RoleRoEntity));
         if(_role!=null)
         {
             _role.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }