Skip to content

Commit 3eed34f

Browse files
committed
FD revisions for Ch10
1 parent e7677cb commit 3eed34f

File tree

3 files changed

+1
-47
lines changed

3 files changed

+1
-47
lines changed

code/Chapter10/Northwind.EntityModels/Category.cs

+1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ public class Category
1616
public virtual ICollection<Product> Products { get; set; }
1717
// To enable developers to add products to a Category, we must
1818
// initialize the navigation property to an empty collection.
19+
// This also avoids an exception if we get a member like Count.
1920
= new HashSet<Product>();
2021
}

code/Chapter10/WorkingWithEFCore/Category.cs

-20
This file was deleted.

code/Chapter10/WorkingWithEFCore/Product.cs

-27
This file was deleted.

0 commit comments

Comments
 (0)