Beispiel #1
0
 /// <summary> setups the sync logic for member _snGroup</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncSnGroup(IEntityCore relatedEntity)
 {
     if (_snGroup != relatedEntity)
     {
         DesetupSyncSnGroup(true, true);
         _snGroup = (SnGroupEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_snGroup, new PropertyChangedEventHandler(OnSnGroupPropertyChanged), "SnGroup", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnGroupRequestRelations.SnGroupEntityUsingGroupIdStatic, true, new string[] {  });
     }
 }
Beispiel #2
0
 protected SnGroupRequestEntity(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);
         }
         _snGroup = (SnGroupEntity)info.GetValue("_snGroup", typeof(SnGroupEntity));
         if (_snGroup != null)
         {
             _snGroup.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Beispiel #3
0
 /// <summary> Removes the sync logic for member _snGroup</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 DesetupSyncSnGroup(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_snGroup, new PropertyChangedEventHandler(OnSnGroupPropertyChanged), "SnGroup", MonoSoftware.MonoX.DAL.RelationClasses.StaticSnGroupRequestRelations.SnGroupEntityUsingGroupIdStatic, true, signalRelatedEntity, "SnGroupRequests", resetFKFields, new int[] { (int)SnGroupRequestFieldIndex.GroupId });
     _snGroup = null;
 }