protected MedicalVendorTestPaymentsEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _medicalVendorMvuser = (MedicalVendorMvuserEntity)info.GetValue("_medicalVendorMvuser", typeof(MedicalVendorMvuserEntity));
                if (_medicalVendorMvuser != null)
                {
                    _medicalVendorMvuser.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _medicalVendorPayments = (MedicalVendorPaymentsEntity)info.GetValue("_medicalVendorPayments", typeof(MedicalVendorPaymentsEntity));
                if (_medicalVendorPayments != null)
                {
                    _medicalVendorPayments.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _test = (TestEntity)info.GetValue("_test", typeof(TestEntity));
                if (_test != null)
                {
                    _test.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
 /// <summary> setups the sync logic for member _medicalVendorMvuser</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncMedicalVendorMvuser(IEntity2 relatedEntity)
 {
     if (_medicalVendorMvuser != relatedEntity)
     {
         DesetupSyncMedicalVendorMvuser(true, true);
         _medicalVendorMvuser = (MedicalVendorMvuserEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_medicalVendorMvuser, new PropertyChangedEventHandler(OnMedicalVendorMvuserPropertyChanged), "MedicalVendorMvuser", MvuserEventCustomerLockEntity.Relations.MedicalVendorMvuserEntityUsingMedicalVendorMvuserId, true, new string[] {  });
     }
 }
Ejemplo n.º 3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _medicalVendorMvuser = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
 /// <summary> Removes the sync logic for member _medicalVendorMvuser</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 DesetupSyncMedicalVendorMvuser(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_medicalVendorMvuser, new PropertyChangedEventHandler(OnMedicalVendorMvuserPropertyChanged), "MedicalVendorMvuser", MvuserEventCustomerLockEntity.Relations.MedicalVendorMvuserEntityUsingMedicalVendorMvuserId, true, signalRelatedEntity, "MvuserEventCustomerLock", resetFKFields, new int[] { (int)MvuserEventCustomerLockFieldIndex.MedicalVendorMvuserId });
     _medicalVendorMvuser = null;
 }