protected VendorEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _productVendors = (EntityCollection <ProductVendorEntity>)info.GetValue("_productVendors", typeof(EntityCollection <ProductVendorEntity>)); _purchaseOrderHeaders = (EntityCollection <PurchaseOrderHeaderEntity>)info.GetValue("_purchaseOrderHeaders", typeof(EntityCollection <PurchaseOrderHeaderEntity>)); _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); if (_businessEntity != null) { _businessEntity.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
protected BusinessEntityAddressEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _address = (AddressEntity)info.GetValue("_address", typeof(AddressEntity)); if (_address != null) { _address.AfterSave += new EventHandler(OnEntityAfterSave); } _addressType = (AddressTypeEntity)info.GetValue("_addressType", typeof(AddressTypeEntity)); if (_addressType != null) { _addressType.AfterSave += new EventHandler(OnEntityAfterSave); } _businessEntity = (BusinessEntityEntity)info.GetValue("_businessEntity", typeof(BusinessEntityEntity)); if (_businessEntity != null) { _businessEntity.AfterSave += new EventHandler(OnEntityAfterSave); } this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }