Пример #1
0
        protected RecycleVendorServiceEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _account = (AccountEntity)info.GetValue("_account", typeof(AccountEntity));
                if (_account != null)
                {
                    _account.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _recycleType = (RecycleTypeEntity)info.GetValue("_recycleType", typeof(RecycleTypeEntity));
                if (_recycleType != null)
                {
                    _recycleType.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _recycleVendor = (RecycleVendorEntity)info.GetValue("_recycleVendor", typeof(RecycleVendorEntity));
                if (_recycleVendor != null)
                {
                    _recycleVendor.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Пример #2
0
 /// <summary> setups the sync logic for member _recycleVendor</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncRecycleVendor(IEntity2 relatedEntity)
 {
     if (_recycleVendor != relatedEntity)
     {
         DesetupSyncRecycleVendor(true, true);
         _recycleVendor = (RecycleVendorEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_recycleVendor, new PropertyChangedEventHandler(OnRecycleVendorPropertyChanged), "RecycleVendor", RecycleVendorServiceEntity.Relations.RecycleVendorEntityUsingRecycleVendorId, true, new string[] {  });
     }
 }
Пример #3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _account       = null;
            _recycleType   = null;
            _recycleVendor = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END

            OnInitClassMembersComplete();
        }
Пример #4
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 public override RelationCollection GetRelationsForFieldOfType(string fieldName)
 {
     return(RecycleVendorEntity.GetRelationsForField(fieldName));
 }
Пример #5
0
 /// <summary> Removes the sync logic for member _recycleVendor</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 DesetupSyncRecycleVendor(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_recycleVendor, new PropertyChangedEventHandler(OnRecycleVendorPropertyChanged), "RecycleVendor", RecycleVendorServiceEntity.Relations.RecycleVendorEntityUsingRecycleVendorId, true, signalRelatedEntity, "RecycleVendorService", resetFKFields, new int[] { (int)RecycleVendorServiceFieldIndex.RecycleVendorId });
     _recycleVendor = null;
 }