mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
53 lines
774 B
C#
53 lines
774 B
C#
namespace TemplateStudioSampleApp.Core.Models;
|
|
|
|
// Model for the SampleDataService. Replace with your own model.
|
|
public class SampleOrderDetail
|
|
{
|
|
public long ProductID
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string ProductName
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public int Quantity
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public double Discount
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string QuantityPerUnit
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public double UnitPrice
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string CategoryName
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string CategoryDescription
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public double Total
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string ShortDescription => $"Product ID: {ProductID} - {ProductName}";
|
|
}
|