ProductOrder

Namespace: Babel.Data Assembly: Babel.Data.dll

Represents a product order.

public class ProductOrder : EntityTracker, INotifyPropertyChanged

Inheritance

objectEntityTrackerProductOrder

Implements

INotifyPropertyChanged

Inherited Members

EntityTracker.SetWithNotify<T>(T, ref T, string), EntityTracker.IsDirty, EntityTracker.PropertyChanged, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ProductOrder()

public ProductOrder()

Properties

Description

Gets or sets the description of the product order.

public string Description { get; set; }

Property Value

string

Discount

Gets or sets the discount applied to the product.

public double? Discount { get; set; }

Property Value

double?

Order

Gets or sets the order associated with the product.

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

Property Value

Order

OrderId

Gets or sets the ID of the order associated with the product.

public int OrderId { get; set; }

Property Value

int

Product

Gets or sets the product associated with the order.

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

Property Value

Product

ProductId

Gets or sets the ID of the product associated with the order.

public int ProductId { get; set; }

Property Value

int

Quantity

Gets or sets the quantity of the product ordered.

public int Quantity { get; set; }

Property Value

int

Taxes

Gets or sets the taxes applied to the product.

public double? Taxes { get; set; }

Property Value

double?

UnitPrice

Gets or sets the unit price of the product.

[Column(TypeName = "decimal(18,4)")]
public decimal? UnitPrice { get; set; }

Property Value

decimal?

Last updated