Beispiel #1
0
        protected AssetReclamationServiceChangeLogEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            if (SerializationHelper.Optimization != SerializationOptimization.Fast)
            {
                _assetReclamationService = (AssetReclamationServiceEntity)info.GetValue("_assetReclamationService", typeof(AssetReclamationServiceEntity));
                if (_assetReclamationService != null)
                {
                    _assetReclamationService.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _employee = (EmployeeEntity)info.GetValue("_employee", typeof(EmployeeEntity));
                if (_employee != null)
                {
                    _employee.AfterSave += new EventHandler(OnEntityAfterSave);
                }
                _user = (UserEntity)info.GetValue("_user", typeof(UserEntity));
                if (_user != null)
                {
                    _user.AfterSave += new EventHandler(OnEntityAfterSave);
                }

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Beispiel #2
0
 /// <summary> setups the sync logic for member _assetReclamationService</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncAssetReclamationService(IEntity2 relatedEntity)
 {
     if (_assetReclamationService != relatedEntity)
     {
         DesetupSyncAssetReclamationService(true, true);
         _assetReclamationService = (AssetReclamationServiceEntity)relatedEntity;
         base.PerformSetupSyncRelatedEntity(_assetReclamationService, new PropertyChangedEventHandler(OnAssetReclamationServicePropertyChanged), "AssetReclamationService", AssetReclamationServiceChangeLogEntity.Relations.AssetReclamationServiceEntityUsingAssetReclamationServiceId, true, new string[] {  });
     }
 }
Beispiel #3
0
        /// <summary> Initializes the class members</summary>
        protected virtual void InitClassMembers()
        {
            _assetReclamationService = null;
            _employee = null;
            _user     = null;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END

            OnInitClassMembersComplete();
        }
Beispiel #4
0
 /// <summary> Removes the sync logic for member _assetReclamationService</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 DesetupSyncAssetReclamationService(bool signalRelatedEntity, bool resetFKFields)
 {
     base.PerformDesetupSyncRelatedEntity(_assetReclamationService, new PropertyChangedEventHandler(OnAssetReclamationServicePropertyChanged), "AssetReclamationService", AssetReclamationServiceChangeLogEntity.Relations.AssetReclamationServiceEntityUsingAssetReclamationServiceId, true, signalRelatedEntity, "AssetReclamationServiceChangeLog", resetFKFields, new int[] { (int)AssetReclamationServiceChangeLogFieldIndex.AssetReclamationServiceId });
     _assetReclamationService = null;
 }