示例#1
0
        /// <summary>Initializes the class members</summary>
        private void InitClassMembers()
        {
            _products = new SD.LLBLGen.Pro.Examples.CollectionClasses.ProductCollection();
            _products.SetContainingEntityInfo(this, "Supplier");
            _categoriesCollectionViaProducts = new SD.LLBLGen.Pro.Examples.CollectionClasses.CategoryCollection();
            PerformDependencyInjection();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
            // __LLBLGENPRO_USER_CODE_REGION_END
            OnInitClassMembersComplete();
        }
 /// <summary>Private CTor for deserialization</summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected CategoryEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _products                                   = (SD.LLBLGen.Pro.Examples.CollectionClasses.ProductCollection)info.GetValue("_products", typeof(SD.LLBLGen.Pro.Examples.CollectionClasses.ProductCollection));
     _alwaysFetchProducts                        = info.GetBoolean("_alwaysFetchProducts");
     _alreadyFetchedProducts                     = info.GetBoolean("_alreadyFetchedProducts");
     _supplierCollectionViaProduct               = (SD.LLBLGen.Pro.Examples.CollectionClasses.SupplierCollection)info.GetValue("_supplierCollectionViaProduct", typeof(SD.LLBLGen.Pro.Examples.CollectionClasses.SupplierCollection));
     _alwaysFetchSupplierCollectionViaProduct    = info.GetBoolean("_alwaysFetchSupplierCollectionViaProduct");
     _alreadyFetchedSupplierCollectionViaProduct = info.GetBoolean("_alreadyFetchedSupplierCollectionViaProduct");
     this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
示例#3
0
        /// <summary>Initializes the class members</summary>
        private void InitClassMembers()
        {
            _orderDetails = new SD.LLBLGen.Pro.Examples.CollectionClasses.OrderDetailCollection();
            _orderDetails.SetContainingEntityInfo(this, "Order");
            _productCollectionViaOrderDetails = new SD.LLBLGen.Pro.Examples.CollectionClasses.ProductCollection();
            _customerReturnsNewIfNotFound     = true;
            _employeeReturnsNewIfNotFound     = true;
            _shipperReturnsNewIfNotFound      = true;
            PerformDependencyInjection();

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