Exemplo n.º 1
0
 public OrderItem(Product product, short quantity, decimal unitPrice, float discount)
     : this()
 {
     Product = product;
     Quantity = quantity;
     UnitPrice = unitPrice;
     Discount = discount;
 }
Exemplo n.º 2
0
 partial void DeleteProduct(Product instance);
Exemplo n.º 3
0
 partial void UpdateProduct(Product instance);
Exemplo n.º 4
0
 partial void InsertProduct(Product instance);
Exemplo n.º 5
0
		private void detach_Products(Product entity)
		{
			this.SendPropertyChanging();
			entity.Category = null;
		}
Exemplo n.º 6
0
		private void attach_Products(Product entity)
		{
			this.SendPropertyChanging();
			entity.Category = this;
		}
Exemplo n.º 7
0
		private void detach_Products(Product entity)
		{
			this.SendPropertyChanging();
			entity.Supplier = null;
		}
Exemplo n.º 8
0
		private void attach_Products(Product entity)
		{
			this.SendPropertyChanging();
			entity.Supplier = this;
		}