Archive | September, 2012

Entity Framework 5.0 & Upgrading Project to FW 4.5

September 25, 2012

4 Comments

I was listening to a recent .NET Rocks with Julie Lerman on Entity Framework 5, and she was asked if EF5 worked with both .NET 4.5 and .NET 4.0. Around minute 26, she briefly mentioned it’s tricky because the dll that gets installed via NuGet is determined by the Target Framework the project is set […]

Continue reading...

System.Web.Helpers.Chart Custom Themes

September 18, 2012

9 Comments

I am in the process of moving some reporting I built in 2004 using the WebChart Control for ASP.NET from CarlosAg.net in a WebForms  site that used .NET FW 2.0 to a .NET FW 4.5 MVC4 site. As you can see from this Tweet, I was pretty excited to see Razor Chart Helpers built into […]

Continue reading...

Entity Framework Circular References

September 10, 2012

8 Comments

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

4 Comments

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...