/// <summary>Protected CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected ProductCategoryEntityBase(SerializationInfo info, StreamingContext context) : base(info, context) { _productSubcategory = (AW.Data.CollectionClasses.ProductSubcategoryCollection)info.GetValue("_productSubcategory", typeof(AW.Data.CollectionClasses.ProductSubcategoryCollection)); _alwaysFetchProductSubcategory = info.GetBoolean("_alwaysFetchProductSubcategory"); _alreadyFetchedProductSubcategory = info.GetBoolean("_alreadyFetchedProductSubcategory"); base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _productSubcategory = new AW.Data.CollectionClasses.ProductSubcategoryCollection(new ProductSubcategoryEntityFactory()); _productSubcategory.SetContainingEntityInfo(this, "ProductCategory"); _alwaysFetchProductSubcategory = false; _alreadyFetchedProductSubcategory = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }