Querying Data

Note

This documentation is for EF Core. For EF6.x, see Entity Framework 6.

Entity Framework Core uses Language Integrate Query (LINQ) to query data from the database. LINQ allows you to use C# (or your .NET language of choice) to write strongly typed queries based on your derived context and entity classes. A representation of the LINQ query is passed to the database provider, to be translated in database-specific query language (e.g. SQL for a relational database). For more detailed information on how a query is processed, see How Query Works.