I downloaded the VS 2010 beta1 today and started to dissect Entity Framework 4. (Also note the name: EF4.. The new name comes from .NET _4_ ) Here are my initial impressions: POCO Support. POCO comes in two flavors: Run-time POCO and Compile-time POCO: Run-time POCO is where the framework interact with your POCO types directly. This…More
Category Archives: C#
Pleasing the O/R Mapper – Default Constructor Hack
Hack of the day: Most O/R mapper frameworks require entities to implement a default constructor. This is most often not a big deal, most entities would support a default constructor no matter if the mapper needed it or not. However, if you intend to expose an entity that only support a copy constructor. Let’s say…More
The simplest form of configurable Dependency Injection
I love the concept of dependency injection, but I’ve never found a dependency injection framework that I think is easy enough to use. They either rely on XML configurations that are really awkward. Others have force you to resolve objects by some untyped string ID. I don’t want that. I want to resolve my objects…More
Linq Expressions – From and to delegates
I’m getting quite a few hits on my blog regarding Linq Expressions and how to convert those to and from delegates, so I figure I can just as well make a small post about it. From Delegate to Expression; This is not really possible, you can never cast or convert an existing delegate into an expression…More
An intentional extensible language?
Ever since I first saw Lisp I have had a sort of hate love for it. The syntax is horrible to look at, but at the same time it is pure genius in the sense that you can add new language constructs since everything are functions. I have never seen any other language that can…More
