When we create a new .NET Core class it only contains the using System; reference.
To enable Linq database queries in a .NET Core project, add using System.Linq;
using System; using System.Linq;
To enable the usage of .Include() in the Linq queries, add
using Microsoft.EntityFrameworkCore;