Esempio n. 1
0
 /// <summary> setups the sync logic for member _customerEventTests</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCustomerEventTests(IEntity2 relatedEntity)
 {
     if (_customerEventTests != relatedEntity)
     {
         DesetupSyncCustomerEventTests(true, true);
         _customerEventTests = (CustomerEventTestsEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_customerEventTests, new PropertyChangedEventHandler(OnCustomerEventTestsPropertyChanged), "CustomerEventTests", ScansEntity.Relations.CustomerEventTestsEntityUsingCustomerEventTestId, true, new string[] {  });
     }
 }
Esempio n. 2
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _customerEventTests = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Esempio n. 3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _interpretationDetails = null;
            _interpretationNotes   = null;
            _testParametersCollectionViaInterpretationDetails = null;
            _customerEventTests = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Esempio n. 4
0
        protected ScansEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _customerEventTests = (CustomerEventTestsEntity)info.GetValue("_customerEventTests", typeof(CustomerEventTestsEntity));
                if (_customerEventTests != null)
                {
                    _customerEventTests.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Esempio n. 5
0
        protected InterpretationsEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _interpretationDetails = (EntityCollection <InterpretationDetailsEntity>)info.GetValue("_interpretationDetails", typeof(EntityCollection <InterpretationDetailsEntity>));
                _interpretationNotes   = (EntityCollection <InterpretationNotesEntity>)info.GetValue("_interpretationNotes", typeof(EntityCollection <InterpretationNotesEntity>));
                _testParametersCollectionViaInterpretationDetails = (EntityCollection <TestParametersEntity>)info.GetValue("_testParametersCollectionViaInterpretationDetails", typeof(EntityCollection <TestParametersEntity>));
                _customerEventTests = (CustomerEventTestsEntity)info.GetValue("_customerEventTests", typeof(CustomerEventTestsEntity));
                if (_customerEventTests != null)
                {
                    _customerEventTests.AfterSave += new EventHandler(OnEntityAfterSave);
                }

                base.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 _customerEventTests</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 DesetupSyncCustomerEventTests(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_customerEventTests, new PropertyChangedEventHandler(OnCustomerEventTestsPropertyChanged), "CustomerEventTests", ScansEntity.Relations.CustomerEventTestsEntityUsingCustomerEventTestId, true, signalRelatedEntity, "Scans", resetFKFields, new int[] { (int)ScansFieldIndex.CustomerEventTestId });
     _customerEventTests = null;
 }