From 392f17e9fa5da8bacf19f50bb9a677c635d1e552 Mon Sep 17 00:00:00 2001 From: Anders Wiberg Olsen Date: Mon, 11 Feb 2019 10:04:38 +0100 Subject: [PATCH] Fix the "id" of the comments in the list You use #A, #B, #C, #D and #E in the code, but the list in the bottom was incorrect. --- DataLayer/EfClasses/Book.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DataLayer/EfClasses/Book.cs b/DataLayer/EfClasses/Book.cs index ef0c9af..48946a2 100644 --- a/DataLayer/EfClasses/Book.cs +++ b/DataLayer/EfClasses/Book.cs @@ -32,7 +32,7 @@ public ICollection #A The Book class contains the main book information #B I use EF Core's 'by convention' approach to defining the primary key of this entity class. In this case I use Id, and because the property if of type int EF Core assumes that the database will use the SQL IDENTITY command to create a unique key when a new row is added #C This is the link to the optional PriceOffer - #C There can be zero to many Reviews of the book - #D This provides a link to the Many-to-Many linking table that links to the Authors of this book + #D There can be zero to many Reviews of the book + #E This provides a link to the Many-to-Many linking table that links to the Authors of this book * **************************************************/ -} \ No newline at end of file +}