示例#1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _malat = new Kalibrasi.Data.CollectionClasses.MAlatCollection(new MAlatEntityFactory());
            _malat.SetContainingEntityInfo(this, "Muser");
            _alwaysFetchMalat = false;
            _alreadyFetchedMalat = false;
            _mdepartement = new Kalibrasi.Data.CollectionClasses.MDepartementCollection(new MDepartementEntityFactory());
            _mdepartement.SetContainingEntityInfo(this, "Muser");
            _alwaysFetchMdepartement = false;
            _alreadyFetchedMdepartement = false;
            _mlokasi = new Kalibrasi.Data.CollectionClasses.MLokasiCollection(new MLokasiEntityFactory());
            _mlokasi.SetContainingEntityInfo(this, "Muser");
            _alwaysFetchMlokasi = false;
            _alreadyFetchedMlokasi = false;
            _mpic = new Kalibrasi.Data.CollectionClasses.MPicCollection(new MPicEntityFactory());
            _mpic.SetContainingEntityInfo(this, "Muser");
            _alwaysFetchMpic = false;
            _alreadyFetchedMpic = false;

            _mhakAkses = null;
            _mhakAksesReturnsNewIfNotFound = true;
            _alwaysFetchMhakAkses = false;
            _alreadyFetchedMhakAkses = 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 MUserEntity(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            _malat = (Kalibrasi.Data.CollectionClasses.MAlatCollection)info.GetValue("_malat", typeof(Kalibrasi.Data.CollectionClasses.MAlatCollection));
            _alwaysFetchMalat = info.GetBoolean("_alwaysFetchMalat");
            _alreadyFetchedMalat = info.GetBoolean("_alreadyFetchedMalat");
            _mdepartement = (Kalibrasi.Data.CollectionClasses.MDepartementCollection)info.GetValue("_mdepartement", typeof(Kalibrasi.Data.CollectionClasses.MDepartementCollection));
            _alwaysFetchMdepartement = info.GetBoolean("_alwaysFetchMdepartement");
            _alreadyFetchedMdepartement = info.GetBoolean("_alreadyFetchedMdepartement");
            _mlokasi = (Kalibrasi.Data.CollectionClasses.MLokasiCollection)info.GetValue("_mlokasi", typeof(Kalibrasi.Data.CollectionClasses.MLokasiCollection));
            _alwaysFetchMlokasi = info.GetBoolean("_alwaysFetchMlokasi");
            _alreadyFetchedMlokasi = info.GetBoolean("_alreadyFetchedMlokasi");
            _mpic = (Kalibrasi.Data.CollectionClasses.MPicCollection)info.GetValue("_mpic", typeof(Kalibrasi.Data.CollectionClasses.MPicCollection));
            _alwaysFetchMpic = info.GetBoolean("_alwaysFetchMpic");
            _alreadyFetchedMpic = info.GetBoolean("_alreadyFetchedMpic");

            _mhakAkses = (MHakAksesEntity)info.GetValue("_mhakAkses", typeof(MHakAksesEntity));
            if(_mhakAkses!=null)
            {
                _mhakAkses.AfterSave+=new EventHandler(OnEntityAfterSave);
            }
            _mhakAksesReturnsNewIfNotFound = info.GetBoolean("_mhakAksesReturnsNewIfNotFound");
            _alwaysFetchMhakAkses = info.GetBoolean("_alwaysFetchMhakAkses");
            _alreadyFetchedMhakAkses = info.GetBoolean("_alreadyFetchedMhakAkses");

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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }