Inheritance: CommonEntityBase
Esempio n. 1
0
 /// <summary> setups the sync logic for member _snFriendList</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncSnFriendList(IEntityCore relatedEntity)
 {
     if (_snFriendList != relatedEntity)
     {
         DesetupSyncSnFriendList(true, true);
         _snFriendList = (SnFriendListEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_snFriendList, new PropertyChangedEventHandler(OnSnFriendListPropertyChanged), "SnFriendList", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendListMemberRelations.SnFriendListEntityUsingFriendListIdStatic, true, new string[] {  });
     }
 }
Esempio n. 2
0
 protected SnFriendListMemberEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if (_aspnetUser != null)
         {
             _aspnetUser.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _snFriendList = (SnFriendListEntity)info.GetValue("_snFriendList", typeof(SnFriendListEntity));
         if (_snFriendList != null)
         {
             _snFriendList.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
 /// <summary> setups the sync logic for member _snFriendList</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncSnFriendList(IEntityCore relatedEntity)
 {
     if(_snFriendList!=relatedEntity)
     {
         DesetupSyncSnFriendList(true, true);
         _snFriendList = (SnFriendListEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _snFriendList, new PropertyChangedEventHandler( OnSnFriendListPropertyChanged ), "SnFriendList", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendListMemberRelations.SnFriendListEntityUsingFriendListIdStatic, true, new string[] {  } );
     }
 }
 /// <summary> Removes the sync logic for member _snFriendList</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 DesetupSyncSnFriendList(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _snFriendList, new PropertyChangedEventHandler( OnSnFriendListPropertyChanged ), "SnFriendList", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendListMemberRelations.SnFriendListEntityUsingFriendListIdStatic, true, signalRelatedEntity, "SnFriendListMembers", resetFKFields, new int[] { (int)SnFriendListMemberFieldIndex.FriendListId } );
     _snFriendList = null;
 }
 protected SnFriendListMemberEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
         if(_aspnetUser!=null)
         {
             _aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         _snFriendList = (SnFriendListEntity)info.GetValue("_snFriendList", typeof(SnFriendListEntity));
         if(_snFriendList!=null)
         {
             _snFriendList.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Esempio n. 6
0
 /// <summary> Removes the sync logic for member _snFriendList</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 DesetupSyncSnFriendList(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_snFriendList, new PropertyChangedEventHandler(OnSnFriendListPropertyChanged), "SnFriendList", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnFriendListMemberRelations.SnFriendListEntityUsingFriendListIdStatic, true, signalRelatedEntity, "SnFriendListMembers", resetFKFields, new int[] { (int)SnFriendListMemberFieldIndex.FriendListId });
     _snFriendList = null;
 }