Esempio n. 1
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected StatusEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            _load                                    = (Reliant.RenuOil.DAL.CollectionClasses.LoadCollection)info.GetValue("_load", typeof(Reliant.RenuOil.DAL.CollectionClasses.LoadCollection));
            _alwaysFetchLoad                         = info.GetBoolean("_alwaysFetchLoad");
            _alreadyFetchedLoad                      = info.GetBoolean("_alreadyFetchedLoad");
            _employeeCollectionViaLoad               = (Reliant.RenuOil.DAL.CollectionClasses.EmployeeCollection)info.GetValue("_employeeCollectionViaLoad", typeof(Reliant.RenuOil.DAL.CollectionClasses.EmployeeCollection));
            _alwaysFetchEmployeeCollectionViaLoad    = info.GetBoolean("_alwaysFetchEmployeeCollectionViaLoad");
            _alreadyFetchedEmployeeCollectionViaLoad = info.GetBoolean("_alreadyFetchedEmployeeCollectionViaLoad");


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

            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
Esempio n. 2
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _load = new Reliant.RenuOil.DAL.CollectionClasses.LoadCollection(new LoadEntityFactory());
            _load.SetContainingEntityInfo(this, "Status");
            _alwaysFetchLoad                         = false;
            _alreadyFetchedLoad                      = false;
            _employeeCollectionViaLoad               = new Reliant.RenuOil.DAL.CollectionClasses.EmployeeCollection(new EmployeeEntityFactory());
            _alwaysFetchEmployeeCollectionViaLoad    = false;
            _alreadyFetchedEmployeeCollectionViaLoad = false;



            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }