Table of Contents

Class OrderedProduct

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

Junction table that assigns the ordered Products to an Order.

[Table("OrderedProducts")]
public class OrderedProduct
Inheritance
OrderedProduct
Inherited Members

Properties

Id

Primary key. Fuck.

public long Id { get; set; }

Property Value

long

Order

The Order to which to associate an ordered Product.

[ForeignKey("OrderId")]
public Order Order { get; set; }

Property Value

Order

OrderId

The ID of the Order to which to associate an ordered Product.

public long OrderId { get; set; }

Property Value

long

Product

The ordered Product.

[ForeignKey("ProductSKU")]
public Product Product { get; set; }

Property Value

Product

ProductSKU

ID of the ordered Product (which is also its SKU).

public string ProductSKU { get; set; }

Property Value

string