Now that we have loaded some sample data into our database, let us learn how to retrieve and filter it using Entity Framework Core 5. To filter data, we use LINQ either through its Query syntax or the Method syntax. I tend to use a mix of the two syntaxes to get my desired data. I will first cover the Query syntax and then explain the Method syntax. After we go over the basics of LINQ, I will show you how to test Entity Framework Core against our database through some NUnit integration tests.
7. Getting Data
Get Beginning Entity Framework Core 5: From Novice to Professional 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.