예제 #1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _thistoryAlat = new Kalibrasi.Data.CollectionClasses.THistoryAlatCollection(new THistoryAlatEntityFactory());
            _thistoryAlat.SetContainingEntityInfo(this, "Malat");
            _alwaysFetchThistoryAlat = false;
            _alreadyFetchedThistoryAlat = false;

            _muser = null;
            _muserReturnsNewIfNotFound = true;
            _alwaysFetchMuser = false;
            _alreadyFetchedMuser = false;

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END

            OnInitClassMembersComplete();
        }
예제 #2
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected MAlatEntity(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            _thistoryAlat = (Kalibrasi.Data.CollectionClasses.THistoryAlatCollection)info.GetValue("_thistoryAlat", typeof(Kalibrasi.Data.CollectionClasses.THistoryAlatCollection));
            _alwaysFetchThistoryAlat = info.GetBoolean("_alwaysFetchThistoryAlat");
            _alreadyFetchedThistoryAlat = info.GetBoolean("_alreadyFetchedThistoryAlat");

            _muser = (MUserEntity)info.GetValue("_muser", typeof(MUserEntity));
            if(_muser!=null)
            {
                _muser.AfterSave+=new EventHandler(OnEntityAfterSave);
            }
            _muserReturnsNewIfNotFound = info.GetBoolean("_muserReturnsNewIfNotFound");
            _alwaysFetchMuser = info.GetBoolean("_alwaysFetchMuser");
            _alreadyFetchedMuser = info.GetBoolean("_alreadyFetchedMuser");

            base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }