Add chapter 10 sample project

This commit is contained in:
Alvin Ashcraft
2023-08-13 13:40:04 -04:00
parent f9e4d407b9
commit 90f935f4b2
91 changed files with 4110 additions and 0 deletions
@@ -0,0 +1,81 @@
namespace TemplateStudioSampleApp.Core.Models;
// Model for the SampleDataService. Replace with your own model.
public class SampleOrder
{
public long OrderID
{
get; set;
}
public DateTime OrderDate
{
get; set;
}
public DateTime RequiredDate
{
get; set;
}
public DateTime ShippedDate
{
get; set;
}
public string ShipperName
{
get; set;
}
public string ShipperPhone
{
get; set;
}
public double Freight
{
get; set;
}
public string Company
{
get; set;
}
public string ShipTo
{
get; set;
}
public double OrderTotal
{
get; set;
}
public string Status
{
get; set;
}
public int SymbolCode
{
get; set;
}
public string SymbolName
{
get; set;
}
public char Symbol => (char)SymbolCode;
public ICollection<SampleOrderDetail> Details
{
get; set;
}
public string ShortDescription => $"Order ID: {OrderID}";
public override string ToString() => $"{Company} {Status}";
}