How to use EF Core as an in-memory database in ASP.NET Core 6
Entity Framework Core allows you to store and retrieve data to and from an in-memory database. It’s a quick and easy way to test your ASP.NET Core 6 web applications.
Authorcontroller Iauthorrepository Webapplication Createbuilder Services Addendpointsapiexplorer Services Addswaggergen Services Addscoped Services Addcontrollers
Source: infoworld.com