/// <summary> setups the sync logic for member _orderShippingInformation</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncOrderShippingInformation(IEntity2 relatedEntity) { if (_orderShippingInformation != relatedEntity) { DesetupSyncOrderShippingInformation(true, true); _orderShippingInformation = (OrderShippingInformationEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_orderShippingInformation, new PropertyChangedEventHandler(OnOrderShippingInformationPropertyChanged), "OrderShippingInformation", ResultOrderEntity.Relations.OrderShippingInformationEntityUsingOrderShippingInformationId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _orderShippingInformation = null; _resultOrderCatalog = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
protected ResultOrderEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _orderShippingInformation = (OrderShippingInformationEntity)info.GetValue("_orderShippingInformation", typeof(OrderShippingInformationEntity)); if (_orderShippingInformation != null) { _orderShippingInformation.AfterSave += new EventHandler(OnEntityAfterSave); } _resultOrderCatalog = (ResultOrderCatalogEntity)info.GetValue("_resultOrderCatalog", typeof(ResultOrderCatalogEntity)); if (_resultOrderCatalog != null) { _resultOrderCatalog.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _orderShippingInformation</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 DesetupSyncOrderShippingInformation(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_orderShippingInformation, new PropertyChangedEventHandler(OnOrderShippingInformationPropertyChanged), "OrderShippingInformation", ResultOrderEntity.Relations.OrderShippingInformationEntityUsingOrderShippingInformationId, true, signalRelatedEntity, "ResultOrder", resetFKFields, new int[] { (int)ResultOrderFieldIndex.OrderShippingInformationId }); _orderShippingInformation = null; }