mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
26 lines
772 B
C#
26 lines
772 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Packt.Shared
|
|
{
|
|
[Keyless]
|
|
public partial class OrderDetailsExtended
|
|
{
|
|
[Column("OrderID")]
|
|
public int OrderId { get; set; }
|
|
[Column("ProductID")]
|
|
public int ProductId { get; set; }
|
|
[StringLength(40)]
|
|
public string ProductName { get; set; } = null!;
|
|
[Column(TypeName = "money")]
|
|
public decimal UnitPrice { get; set; }
|
|
public short Quantity { get; set; }
|
|
public float Discount { get; set; }
|
|
[Column(TypeName = "money")]
|
|
public decimal? ExtendedPrice { get; set; }
|
|
}
|
|
}
|