This is a demo web application for the “ASP.NET Core, Dapper, and Microsoft SQL Server: Update the Child Items Using the MERGE Statement” post on the Dmitry Sikorsky’s blog. It demonstrates how to use the MERGE statement to perform insert, update, or delete operations on a target table based on the results of a join with a source table.
- Create a database and run the db.sql to create its structure.
- Fix the connection string inside the appsettings.json.
- Run and debug the application.
- Check the database.