partial void DeleteMaterialToProduct(MaterialToProduct instance);
 partial void UpdateMaterialToProduct(MaterialToProduct instance);
 partial void InsertMaterialToProduct(MaterialToProduct instance);
		private void detach_MaterialToProducts(MaterialToProduct entity)
		{
			this.SendPropertyChanging();
			entity.Product = null;
		}
		private void attach_MaterialToProducts(MaterialToProduct entity)
		{
			this.SendPropertyChanging();
			entity.Material = this;
		}
Beispiel #6
0
 public MaterialToProduct Edit(MaterialToProduct mp)
 {
     db.MaterialToProducts.InsertOnSubmit(mp);
     db.SubmitChanges();
     return mp;
 }