Category: Entity Framework

  • Sorting in Entity Framework Core

    Continuing from my last post. Let’s add a few endpoints that support sorting. If you’d like the source code, it can be found here. First, I will add a PagingViewModel.cs file to the Database project: This contains the Start index and the Count (which is used for pagination). Also, it has an OrderBy string as…

  • .NET Minimal API’s vs Traditional API’s using K6

    This is my first post so I wanted to do something simple. Minimal API’s are new to .NET 6 and there’s a lot of talk about them. If you’re calling a database, are Minimal API’s faster? I say let’s load test it and see if it’s any better than the traditional model. For this, I…