Skip to content

Commit d6aab8a

Browse files
authored
Merge pull request #9 from TrackableEntities/update-5-0-0
Update to v 5.0.0
2 parents 2b84251 + b64f704 commit d6aab8a

5 files changed

Lines changed: 150 additions & 86 deletions

File tree

NetCoreSample.Web/Migrations/20201124175218_initial.Designer.cs renamed to NetCoreSample.Web/Migrations/20201124204021_initial.Designer.cs

Lines changed: 61 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NetCoreSample.Web/Migrations/20201124175218_initial.cs renamed to NetCoreSample.Web/Migrations/20201124204021_initial.cs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ protected override void Up(MigrationBuilder migrationBuilder)
1111
name: "Category",
1212
columns: table => new
1313
{
14-
CategoryId = table.Column<int>(nullable: false)
14+
CategoryId = table.Column<int>(type: "int", nullable: false)
1515
.Annotation("SqlServer:Identity", "1, 1"),
16-
CategoryName = table.Column<string>(maxLength: 15, nullable: false)
16+
CategoryName = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: false)
1717
},
1818
constraints: table =>
1919
{
@@ -24,11 +24,11 @@ protected override void Up(MigrationBuilder migrationBuilder)
2424
name: "Customer",
2525
columns: table => new
2626
{
27-
CustomerId = table.Column<string>(maxLength: 5, nullable: false),
28-
CompanyName = table.Column<string>(maxLength: 40, nullable: false),
29-
ContactName = table.Column<string>(maxLength: 30, nullable: true),
30-
City = table.Column<string>(maxLength: 15, nullable: true),
31-
Country = table.Column<string>(maxLength: 15, nullable: true)
27+
CustomerId = table.Column<string>(type: "nvarchar(5)", maxLength: 5, nullable: false),
28+
CompanyName = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false),
29+
ContactName = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
30+
City = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: true),
31+
Country = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: true)
3232
},
3333
constraints: table =>
3434
{
@@ -39,12 +39,12 @@ protected override void Up(MigrationBuilder migrationBuilder)
3939
name: "Product",
4040
columns: table => new
4141
{
42-
ProductId = table.Column<int>(nullable: false)
42+
ProductId = table.Column<int>(type: "int", nullable: false)
4343
.Annotation("SqlServer:Identity", "1, 1"),
44-
ProductName = table.Column<string>(maxLength: 40, nullable: false),
45-
CategoryId = table.Column<int>(nullable: true),
44+
ProductName = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: false),
45+
CategoryId = table.Column<int>(type: "int", nullable: true),
4646
UnitPrice = table.Column<decimal>(type: "money", nullable: true),
47-
Discontinued = table.Column<bool>(nullable: false),
47+
Discontinued = table.Column<bool>(type: "bit", nullable: false),
4848
RowVersion = table.Column<byte[]>(type: "timestamp", maxLength: 8, nullable: true)
4949
},
5050
constraints: table =>
@@ -62,8 +62,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
6262
name: "CustomerSetting",
6363
columns: table => new
6464
{
65-
CustomerId = table.Column<string>(maxLength: 5, nullable: false),
66-
Setting = table.Column<string>(maxLength: 50, nullable: false)
65+
CustomerId = table.Column<string>(type: "nvarchar(5)", maxLength: 5, nullable: false),
66+
Setting = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false)
6767
},
6868
constraints: table =>
6969
{
@@ -80,12 +80,12 @@ protected override void Up(MigrationBuilder migrationBuilder)
8080
name: "Order",
8181
columns: table => new
8282
{
83-
OrderId = table.Column<int>(nullable: false)
83+
OrderId = table.Column<int>(type: "int", nullable: false)
8484
.Annotation("SqlServer:Identity", "1, 1"),
85-
CustomerId = table.Column<string>(maxLength: 5, nullable: true),
86-
OrderDate = table.Column<DateTime>(nullable: true),
87-
ShippedDate = table.Column<DateTime>(nullable: true),
88-
ShipVia = table.Column<int>(nullable: true),
85+
CustomerId = table.Column<string>(type: "nvarchar(5)", maxLength: 5, nullable: true),
86+
OrderDate = table.Column<DateTime>(type: "datetime2", nullable: true),
87+
ShippedDate = table.Column<DateTime>(type: "datetime2", nullable: true),
88+
ShipVia = table.Column<int>(type: "int", nullable: true),
8989
Freight = table.Column<decimal>(type: "money", nullable: true)
9090
},
9191
constraints: table =>
@@ -103,13 +103,13 @@ protected override void Up(MigrationBuilder migrationBuilder)
103103
name: "OrderDetail",
104104
columns: table => new
105105
{
106-
OrderDetailId = table.Column<int>(nullable: false)
106+
OrderDetailId = table.Column<int>(type: "int", nullable: false)
107107
.Annotation("SqlServer:Identity", "1, 1"),
108-
OrderId = table.Column<int>(nullable: false),
109-
ProductId = table.Column<int>(nullable: false),
108+
OrderId = table.Column<int>(type: "int", nullable: false),
109+
ProductId = table.Column<int>(type: "int", nullable: false),
110110
UnitPrice = table.Column<decimal>(type: "money", nullable: false),
111-
Quantity = table.Column<short>(nullable: false),
112-
Discount = table.Column<float>(nullable: false)
111+
Quantity = table.Column<short>(type: "smallint", nullable: false),
112+
Discount = table.Column<float>(type: "real", nullable: false)
113113
},
114114
constraints: table =>
115115
{

0 commit comments

Comments
 (0)