Kevin Rich
Entity Framework SQL Debugging
Using Lambdas to Log Generated SQL
Scenario
My boss is a SQL guy, a DBO by trade. Every now and again, he wan't to know what SQL my application is running against the database.
I am not a SQL guy. I've been using EntityFramework and lambdas from nearly the beginning of my .NET adventures. I can read and write SQL...
Solution
. . .Posted in: asp.netdebuggingentity-frameworklambdasql
WebApi JSON Serialization
Circular References FTL
The Challenge
I was building a standard ASP.NET EntityFramework / WebApi / Swagger project. Attempting something a bit new, I decided my controller would return a CreatedAtRoute HttpActionResult. The code goes something a little like this:
[HttpPut]
public IHttpActionResult AddMyObject([FromBody] MyObject newObject)
{ . . .
Posted in: asp.netdevelopmententity-frameworkjsonjsonserializationexceptionmediatypeformatterserialiazationserializerswebapi
Cover image credit: http://whoiskevinrich.com