Defining the entity classes

In both Visual Studio 2017 and Visual Studio Code, add the following class files to the NorthwindEntitiesLib project: Category.cs, Customer.cs, Employee.cs, Order.cs, OrderDetail.cs, Product.cs, Shipper.cs, and Supplier.cs.

Category.cs should look like this:

using System.Collections.Generic;namespace Packt.CS7{   public class Category   {      public int CategoryID { get; set; }      public string CategoryName { get; set; }      public string Description { get; set; }      public ICollection<Product> Products { get; set; }   }}

Customer.cs should look like this:

using System.Collections.Generic;namespace Packt.CS7{   public class Customer   {      public string CustomerID { get; set; }      public string CompanyName { get; set; } public string ContactName ...

Get C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.