forked from markjprice/web-dev-net9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSupplier.cs
51 lines (37 loc) · 1.22 KB
/
Supplier.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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Northwind.EntityModels;
[Index("CompanyName", Name = "CompanyName")]
[Index("PostalCode", Name = "PostalCode")]
public partial class Supplier
{
[Key]
public int SupplierId { get; set; }
[StringLength(40)]
public string CompanyName { get; set; } = null!;
[StringLength(30)]
public string? ContactName { get; set; }
[StringLength(30)]
public string? ContactTitle { get; set; }
[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(24)]
public string? Phone { get; set; }
[StringLength(24)]
public string? Fax { get; set; }
[Column(TypeName = "ntext")]
public string? HomePage { get; set; }
[InverseProperty("Supplier")]
public virtual ICollection<Product> Products { get; set; } = new List<Product>();
}