Beispiel #1
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected MPicEntity(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            _tjadwal = (Kalibrasi.Data.CollectionClasses.TJadwalCollection)info.GetValue("_tjadwal", typeof(Kalibrasi.Data.CollectionClasses.TJadwalCollection));
            _alwaysFetchTjadwal = info.GetBoolean("_alwaysFetchTjadwal");
            _alreadyFetchedTjadwal = info.GetBoolean("_alreadyFetchedTjadwal");

            _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
        }
Beispiel #2
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _tjadwal = new Kalibrasi.Data.CollectionClasses.TJadwalCollection(new TJadwalEntityFactory());
            _tjadwal.SetContainingEntityInfo(this, "Mpic");
            _alwaysFetchTjadwal = false;
            _alreadyFetchedTjadwal = false;

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

            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END

            OnInitClassMembersComplete();
        }