-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathInvoice.cs
85 lines (58 loc) · 1.97 KB
/
Invoice.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Northwind.EntityModels;
[Keyless]
public partial class Invoice
{
[StringLength(40)]
public string? ShipName { get; set; }
[StringLength(60)]
public string? ShipAddress { get; set; }
[StringLength(15)]
public string? ShipCity { get; set; }
[StringLength(15)]
public string? ShipRegion { get; set; }
[StringLength(10)]
public string? ShipPostalCode { get; set; }
[StringLength(15)]
public string? ShipCountry { get; set; }
[StringLength(5)]
public string? CustomerId { get; set; }
[StringLength(40)]
public string CustomerName { get; set; } = null!;
[StringLength(60)]
public string? Address { get; set; }
[StringLength(15)]
public string? City { get; set; }
[StringLength(15)]
public string? Region { get; set; }
[StringLength(10)]
public string? PostalCode { get; set; }
[StringLength(15)]
public string? Country { get; set; }
[StringLength(31)]
public string Salesperson { get; set; } = null!;
public int OrderId { get; set; }
[Column(TypeName = "datetime")]
public DateTime? OrderDate { get; set; }
[Column(TypeName = "datetime")]
public DateTime? RequiredDate { get; set; }
[Column(TypeName = "datetime")]
public DateTime? ShippedDate { get; set; }
[StringLength(40)]
public string ShipperName { get; set; } = null!;
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; }
[Column(TypeName = "money")]
public decimal? Freight { get; set; }
}