To learn more about logging using different providers, we will be creating a demo ASP.NET Core application MyWallet that has the following functionalities:
- It should be able to list all the daily expenses.
- It should be able to get a particular expense by passing the ID.
- It should be able to add/post a single expense to the list. If the movie expense exceeds $300, then it is invalid request data.
- It should be able to edit and delete a particular expense.
In this demo application, we will be using a EF Core InMemory provider. This EF Core package runs the application in memory instead of persisting onto a database. It's ideal for unit testing the data access layer, but is used here to make the example simpler.
You can use any database provider (Sql Server, MySQL, SQLite) by reading Chapter 09, Integration with Databases.
Using the NuGet...