Enable .NET Core Entity Framework Linq query execution

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;

 

Leave a comment

Your email address will not be published. Required fields are marked *