Skip to content

Insane in the Main Frame

I am Ophidia, programmer.

  • Home
  • Deutsch
  • English

EntityFramework

Debug Http Request

11. December 202311. December 2023 ophidiaC#

I had a Controller with a HttpDelete Route. When sending stuff via body to the route, there was a problem, „one or more validation errors occurred“. For debug purposes, you can use a LoggingMiddleware, inspired by this stackoverflow solution. In […]

Read more

EF Database Migration: Adding data and getting the ID

12. February 202112. February 2021 ophidiaC#
Photo by Christopher Burns on Unsplash

I had to add data to existing tables. Using seed data wasn’t possible, therefore I wanted to do it via database migration. If its simple data, migrationBuilder.InsertData works fine. But its not that easy when you have to add a […]

Read more
  • Privacy
  • Contact
  • RSS
Powered by WordPress | Theme: Astrid by aThemes.