Пример #1
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               = (Northwind.SSDAL.CollectionClasses.OrderCollection)info.GetValue("_orders", typeof(Northwind.SSDAL.CollectionClasses.OrderCollection));
     _alwaysFetchOrders    = info.GetBoolean("_alwaysFetchOrders");
     _alreadyFetchedOrders = info.GetBoolean("_alreadyFetchedOrders");
     this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Пример #2
0
        /// <summary> Initializes the class members</summary>
        private void InitClassMembers()
        {
            _orders = new Northwind.SSDAL.CollectionClasses.OrderCollection();
            _orders.SetContainingEntityInfo(this, "Shipper");
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
Пример #3
0
        /// <summary>Initializes the class members</summary>
        private void InitClassMembers()
        {
            _employees = new Northwind.SSDAL.CollectionClasses.EmployeeCollection();
            _employees.SetContainingEntityInfo(this, "Employee");

            _employeeTerritories = new Northwind.SSDAL.CollectionClasses.EmployeeTerritoryCollection();
            _employeeTerritories.SetContainingEntityInfo(this, "Employee");

            _orders = new Northwind.SSDAL.CollectionClasses.OrderCollection();
            _orders.SetContainingEntityInfo(this, "Employee");
            _employeeReturnsNewIfNotFound = false;
            PerformDependencyInjection();

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