Archive | ASP.NET Web API RSS feed for this archive

Entity Framework Circular References

September 10, 2012


One of the first issues I encountered returning serialized, nested (“deep”) entities using EF5 with the (MVC4) ASP.NET Web Api was the “Self Referencing loop” exception* For any property you don’t want exposed, make the Getter: Internal & Setter: Public. Doing this on the navigation properties that reference the parent that reference it will prevent […]

Continue reading...

ASP.NET Web API: Always Set Content-Type

September 5, 2012


I lost a few hours on my project one night last week because of this. Backstory I have been really enjoying my latest project using Asp.NET Web API & EF5. Although I’ve had a bit of a (mostly EF) learning curve, it’s gone swimmingly, and I’ve been blown away at the parsing magic performed by […]

Continue reading...