예제 #1
0
 /// <summary> setups the sync logic for member _mvuser</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncMvuser(IEntity2 relatedEntity)
 {
     if (_mvuser != relatedEntity)
     {
         DesetupSyncMvuser(true, true);
         _mvuser = (MvuserEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_mvuser, new PropertyChangedEventHandler(OnMvuserPropertyChanged), "Mvuser", MvuserFranchiseeEntity.Relations.MvuserEntityUsingMvuserId, true, new string[] {  });
     }
 }
예제 #2
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _franchisee = null;
            _mvuser     = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
예제 #3
0
        protected MvuserFranchiseeEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _franchisee = (FranchiseeEntity)info.GetValue("_franchisee", typeof(FranchiseeEntity));
                if (_franchisee != null)
                {
                    _franchisee.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _mvuser = (MvuserEntity)info.GetValue("_mvuser", typeof(MvuserEntity));
                if (_mvuser != null)
                {
                    _mvuser.AfterSave += new EventHandler(OnEntityAfterSave);
                }

                base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
            }

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
예제 #4
0
 /// <summary> Removes the sync logic for member _mvuser</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 DesetupSyncMvuser(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_mvuser, new PropertyChangedEventHandler(OnMvuserPropertyChanged), "Mvuser", MvuserFranchiseeEntity.Relations.MvuserEntityUsingMvuserId, true, signalRelatedEntity, "MvuserFranchisee", resetFKFields, new int[] { (int)MvuserFranchiseeFieldIndex.MvuserId });
     _mvuser = null;
 }