Tag Archives: patterns

Entity Framework v4, End to End Application Strategy (Part 3, Changes to Data Layer)

Initially in my service layer, I was doing all of my serialization with the Json.NET library, for 2 primary reasons Control over how dates get formatting (I don’t like the \/Date(123)\/ MS AJAX style) The ability to serialize object graphs that contain cycles (by telling Json.NET to ignore them) Unfortunately, this started causing me too [...]
Posted in Code | Also tagged , , , , , | 4 Comments

Entity Framework v4, End to End Application Strategy (Part 2, Data Layer)

In part 1, I talked about what the whole app stack will look like. To recap the stack: SQL Server ↑ Data Layer — EFv4 ↑ (Auto generated AutoMapper configs between entities and DTOs) DTOs (Auto generated with T4 templates, based on the edmx) ↑ Service Layer (WCF REST, based on a template) ↑ (Json.NET [...]
Posted in Code | Also tagged , , , , | 4 Comments

Entity Framework v4, End to End Application Strategy (Part 1, Intro)

Sorry I haven’t posted in so long. Been very busy with new projects at work and a bit of side work. Ok, so I think I am finally moving on from NHibernate, at least for new development. Obviously I’m not going to do anything rash like completely rewrite the data layer of large and complex [...]
Posted in Code | Also tagged , , , , , | 1 Comment

Making Entity Framework (v1) work, Part 1: DataContext lifetime management

EFv1 is sorely lacking in many areas. That doesn’t seem to stop people from using it, however. If EFv2 weren’t on the way (March 2010), I’d probably still be using NHibernate for everything. However, EFv2 (actually named v4 to “align” it with the .NET version number, or as a marketing ploy to make it seem [...]
Posted in Code | Also tagged , , , | 1 Comment