Beispiel #1
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _orders = new SD.LLBLGen.Pro.Examples.CollectionClasses.OrderCollection();
            _orders.SetContainingEntityInfo(this, "Shipper");
            _customerCollectionViaOrders = new SD.LLBLGen.Pro.Examples.CollectionClasses.CustomerCollection();
            _employeeCollectionViaOrders = new SD.LLBLGen.Pro.Examples.CollectionClasses.EmployeeCollection();
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
        /// <summary>Initializes the class members</summary>
        private void InitClassMembers()
        {
            _employeeTerritories = new SD.LLBLGen.Pro.Examples.CollectionClasses.EmployeeTerritoryCollection();
            _employeeTerritories.SetContainingEntityInfo(this, "Territory");
            _employeeCollectionViaEmployeeTerritory = new SD.LLBLGen.Pro.Examples.CollectionClasses.EmployeeCollection();
            _regionReturnsNewIfNotFound             = true;
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Beispiel #3
0
        /// <summary>Private CTor for deserialization</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected ShipperEntity(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            _orders                                    = (SD.LLBLGen.Pro.Examples.CollectionClasses.OrderCollection)info.GetValue("_orders", typeof(SD.LLBLGen.Pro.Examples.CollectionClasses.OrderCollection));
            _alwaysFetchOrders                         = info.GetBoolean("_alwaysFetchOrders");
            _alreadyFetchedOrders                      = info.GetBoolean("_alreadyFetchedOrders");
            _customerCollectionViaOrders               = (SD.LLBLGen.Pro.Examples.CollectionClasses.CustomerCollection)info.GetValue("_customerCollectionViaOrders", typeof(SD.LLBLGen.Pro.Examples.CollectionClasses.CustomerCollection));
            _alwaysFetchCustomerCollectionViaOrders    = info.GetBoolean("_alwaysFetchCustomerCollectionViaOrders");
            _alreadyFetchedCustomerCollectionViaOrders = info.GetBoolean("_alreadyFetchedCustomerCollectionViaOrders");

            _employeeCollectionViaOrders               = (SD.LLBLGen.Pro.Examples.CollectionClasses.EmployeeCollection)info.GetValue("_employeeCollectionViaOrders", typeof(SD.LLBLGen.Pro.Examples.CollectionClasses.EmployeeCollection));
            _alwaysFetchEmployeeCollectionViaOrders    = info.GetBoolean("_alwaysFetchEmployeeCollectionViaOrders");
            _alreadyFetchedEmployeeCollectionViaOrders = info.GetBoolean("_alreadyFetchedEmployeeCollectionViaOrders");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }