private void FixupProduct(Product previousValue) { if (previousValue != null && ReferenceEquals(previousValue.ProductDocument, this)) { previousValue.ProductDocument = null; } if (Product != null) { Product.ProductDocument = this; if (ProductID != Product.ProductID) { ProductID = Product.ProductID; } } }
private void FixupProduct(Product previousValue) { if (previousValue != null && previousValue.SpecialOfferProducts.Contains(this)) { previousValue.SpecialOfferProducts.Remove(this); } if (Product != null) { if (!Product.SpecialOfferProducts.Contains(this)) { Product.SpecialOfferProducts.Add(this); } if (ProductID != Product.ProductID) { ProductID = Product.ProductID; } } }
private void FixupProduct1(Product previousValue) { if (previousValue != null && previousValue.BillOfMaterials1.Contains(this)) { previousValue.BillOfMaterials1.Remove(this); } if (Product1 != null) { if (!Product1.BillOfMaterials1.Contains(this)) { Product1.BillOfMaterials1.Add(this); } if (ProductAssemblyID != Product1.ProductID) { ProductAssemblyID = Product1.ProductID; } } else if (!_settingFK) { ProductAssemblyID = null; } }
private void FixupProduct(Product previousValue) { if (previousValue != null && previousValue.BillOfMaterials.Contains(this)) { previousValue.BillOfMaterials.Remove(this); } if (Product != null) { if (!Product.BillOfMaterials.Contains(this)) { Product.BillOfMaterials.Add(this); } if (ComponentID != Product.ProductID) { ComponentID = Product.ProductID; } } }
private void FixupProduct(Product previousValue) { if (previousValue != null && previousValue.PurchaseOrderDetails.Contains(this)) { previousValue.PurchaseOrderDetails.Remove(this); } if (Product != null) { if (!Product.PurchaseOrderDetails.Contains(this)) { Product.PurchaseOrderDetails.Add(this); } if (ProductID != Product.ProductID) { ProductID = Product.ProductID; } } }
private void FixupProduct(Product previousValue) { if (previousValue != null && previousValue.ProductListPriceHistories.Contains(this)) { previousValue.ProductListPriceHistories.Remove(this); } if (Product != null) { if (!Product.ProductListPriceHistories.Contains(this)) { Product.ProductListPriceHistories.Add(this); } if (ProductID != Product.ProductID) { ProductID = Product.ProductID; } } }
private void FixupProduct(Product previousValue) { if (previousValue != null && previousValue.ShoppingCartItems.Contains(this)) { previousValue.ShoppingCartItems.Remove(this); } if (Product != null) { if (!Product.ShoppingCartItems.Contains(this)) { Product.ShoppingCartItems.Add(this); } if (ProductID != Product.ProductID) { ProductID = Product.ProductID; } } }