Set up Nullable Test

This commit is contained in:
Matt Furden
2018-05-27 18:32:21 -07:00
parent 930f86da01
commit 26d9b09bf7
5 changed files with 35 additions and 8 deletions

View File

@@ -17,7 +17,8 @@ namespace SieveTests.Migrations
CommentCount = table.Column<int>(nullable: false),
DateCreated = table.Column<DateTimeOffset>(nullable: false),
LikeCount = table.Column<int>(nullable: false),
Title = table.Column<string>(nullable: true)
Title = table.Column<string>(nullable: true),
CategoryId = table.Column<int>(nullable: true)
},
constraints: table => table.PrimaryKey("PK_Posts", x => x.Id));
}

View File

@@ -34,6 +34,8 @@ namespace SieveTests.Migrations
b.Property<int>("LikeCount");
b.Property<int?>("CategoryId");
b.Property<string>("Title");
b.HasKey("Id");