partial void DeleteProduct( Product instance );
partial void InsertProduct( Product instance );
partial void UpdateProduct( Product instance );
private void detach_Products( Product entity ) { SendPropertyChanging(); entity.Category = null; }
private void attach_Products( Product entity ) { SendPropertyChanging(); entity.Category = this; }
private void detach_Products( Product entity ) { SendPropertyChanging(); entity.Supplier = null; }
private void attach_Products( Product entity ) { SendPropertyChanging(); entity.Supplier = this; }
// Add a New Product public void AddProduct( Product product ) { Products.InsertOnSubmit( product ); }