protected CountryRegionCurrencyEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _countryRegion = (CountryRegionEntity)info.GetValue("_countryRegion", typeof(CountryRegionEntity)); if (_countryRegion != null) { _countryRegion.AfterSave += new EventHandler(OnEntityAfterSave); } _currency = (CurrencyEntity)info.GetValue("_currency", typeof(CurrencyEntity)); if (_currency != null) { _currency.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected SalesTerritoryEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _customers = (EntityCollection <CustomerEntity>)info.GetValue("_customers", typeof(EntityCollection <CustomerEntity>)); _salesOrderHeaders = (EntityCollection <SalesOrderHeaderEntity>)info.GetValue("_salesOrderHeaders", typeof(EntityCollection <SalesOrderHeaderEntity>)); _salesPeople = (EntityCollection <SalesPersonEntity>)info.GetValue("_salesPeople", typeof(EntityCollection <SalesPersonEntity>)); _salesTerritoryHistories = (EntityCollection <SalesTerritoryHistoryEntity>)info.GetValue("_salesTerritoryHistories", typeof(EntityCollection <SalesTerritoryHistoryEntity>)); _stateProvinces = (EntityCollection <StateProvinceEntity>)info.GetValue("_stateProvinces", typeof(EntityCollection <StateProvinceEntity>)); _countryRegion = (CountryRegionEntity)info.GetValue("_countryRegion", typeof(CountryRegionEntity)); if (_countryRegion != null) { _countryRegion.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }