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

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Beispiel #2
0
        /// <summary>Initializes the class members</summary>
        private void InitClassMembers()
        {
            _employeeTerritories = new SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.EmployeeTerritoryCollection();
            _employeeTerritories.SetContainingEntityInfo(this, "Territories");
            _employeesCollectionViaEmployeeTerritories = new SD.LLBLGen.Pro.Examples.Auditing.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.Auditing.CollectionClasses.OrderCollection)info.GetValue("_orders", typeof(SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.OrderCollection));
            _alwaysFetchOrders                          = info.GetBoolean("_alwaysFetchOrders");
            _alreadyFetchedOrders                       = info.GetBoolean("_alreadyFetchedOrders");
            _customersCollectionViaOrders               = (SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.CustomerCollection)info.GetValue("_customersCollectionViaOrders", typeof(SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.CustomerCollection));
            _alwaysFetchCustomersCollectionViaOrders    = info.GetBoolean("_alwaysFetchCustomersCollectionViaOrders");
            _alreadyFetchedCustomersCollectionViaOrders = info.GetBoolean("_alreadyFetchedCustomersCollectionViaOrders");

            _employeesCollectionViaOrders               = (SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.EmployeeCollection)info.GetValue("_employeesCollectionViaOrders", typeof(SD.LLBLGen.Pro.Examples.Auditing.CollectionClasses.EmployeeCollection));
            _alwaysFetchEmployeesCollectionViaOrders    = info.GetBoolean("_alwaysFetchEmployeesCollectionViaOrders");
            _alreadyFetchedEmployeesCollectionViaOrders = info.GetBoolean("_alreadyFetchedEmployeesCollectionViaOrders");
            this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
            // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
            // __LLBLGENPRO_USER_CODE_REGION_END
        }