Milan Jovanović demonstrates how to build a complete CRUD Minimal API using Dapper and .NET 7.
☄️ Master the Modular Monolith Architecture: bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: patreon.com/milanjovanovic
Dapper is a micro-ORM for SQL databases. It provides simple querying capabilities, and it's also one of the fastest ORMs in the market. Dapper is often compared to EF, but I consider them complementary tools. In this video, I'll show you how to build a complete CRUD API using Dapper and .NET 7. This will be a beginner-friendly video.
Join my weekly .NET newsletter:
milanjovanovic.tech
Read my Blog here:
milanjovanovic.tech/blog
Subscribe for more:
youtube.com/@MilanJovanovicTech
Chapters:
Creating a Minimal API with .NET 7
Installing Dapper and adding the connection string
Adding a class to represent the database table
Creating the GET endpoint to fetch all customers
Moving Minimal API endpoints to a static class
Implementing the SqlConnectionFactory
Creating the GET endpoint to fetch a single customer
Adding the POST endpoint for creating customers
Implementing the PUT endpoint for updating a customer
Creating the DELETE endpoint for deleting a customer
Using a Route Group to simplify Minimal APIs
Why it's here
1 person recommends this
What people say. Recommended as a helpful tutorial for getting started with Dapper without Entity Framework.
U
u/UnremarkabklyUselessin r/dotnet • Recommends
On “.NET without Entity Framework”
There are a few tutorials on YouTube about getting started with Dapper. You could sample them and follow the one you like.
link to this videolink to this videolink to this videolink to this videolink to this videolink to this video