Product Product Class

Definition

public class Product
Public Class Product
Inheritance
System.ObjectSystem.Object
ProductProduct

Constructors

Product() Product()

public Product()
Public Sub New

Properties

CategoryID CategoryID

public int ? CategoryID { get; set; }
Public Property CategoryID As Integer?
Value
System.Nullable<System.Int32> System.Nullable(Of System.Int32)

Discontinued Discontinued

public bool Discontinued { get; set; }
Public Property Discontinued As Boolean
Value
System.Boolean System.Boolean

OrderDetails OrderDetails

public virtual List<OrderDetail> OrderDetails { get; set; }
Public Overridable Property OrderDetails As List(Of OrderDetail)
Value
System.Collections.Generic.List<OrderDetail> System.Collections.Generic.List(Of OrderDetail)

ProductID ProductID

public int ProductID { get; set; }
Public Property ProductID As Integer
Value
System.Int32 System.Int32

ProductName ProductName

public string ProductName { get; set; }
Public Property ProductName As String
Value
System.String System.String

QuantityPerUnit QuantityPerUnit

public string QuantityPerUnit { get; set; }
Public Property QuantityPerUnit As String
Value
System.String System.String

ReorderLevel ReorderLevel

public short ? ReorderLevel { get; set; }
Public Property ReorderLevel As Short?
Value
System.Nullable<System.Int16> System.Nullable(Of System.Int16)

SupplierID SupplierID

public int ? SupplierID { get; set; }
Public Property SupplierID As Integer?
Value
System.Nullable<System.Int32> System.Nullable(Of System.Int32)

UnitPrice UnitPrice

public decimal ? UnitPrice { get; set; }
Public Property UnitPrice As Decimal?
Value
System.Nullable<System.Decimal> System.Nullable(Of System.Decimal)

UnitsInStock UnitsInStock

public short UnitsInStock { get; set; }
Public Property UnitsInStock As Short
Value
System.Int16 System.Int16

UnitsOnOrder UnitsOnOrder

public short ? UnitsOnOrder { get; set; }
Public Property UnitsOnOrder As Short?
Value
System.Nullable<System.Int16> System.Nullable(Of System.Int16)

Methods

Equals(Object) Equals(Object)

public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
System.Object System.Object
Returns
System.Boolean System.Boolean
Overrides
System.Object.Equals(System.Object)System.Object.Equals(System.Object)

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

Equals(Product) Equals(Product)

protected bool Equals(Product other)
Protected Function Equals(other As Product) As Boolean
Parameters
Returns
System.Boolean System.Boolean

GetHashCode() GetHashCode()

public override int GetHashCode()
Public Overrides Function GetHashCode As Integer
Returns
System.Int32 System.Int32
Overrides
System.Object.GetHashCode()System.Object.GetHashCode()

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

public override string ToString()
Public Overrides Function ToString As String
Returns
System.String System.String
Overrides
System.Object.ToString()System.Object.ToString()