Entity Framework 4 – Entity Dependency Injection
When dealing with a fat domain model, there is often a need to be able to inject different services into your entities. e.g. you might want to inject some domain service like “ITaxCalcualtorService” or...
View ArticleTwo flavors of DDD
I have been trying to practice domain driven design for the last few years. During this time, I have learnt that there are almost as many ways to implement DDD as there are practitioners. After...
View ArticleEntity Framework 4 Enum support in Linq
As many of you might know, Entity Framework 4 still lacks support to map enum properties. There are countless of more or less worthless workarounds, everything from exposing constants integers in a...
View ArticleBuilding a Document DB ontop of Sql Server
I’ve started to build a Document DB emulator ontop of Sql Server XML columns. Sql Server XML columns can store schema free xml documents, pretty much like RavenDB or MongoDB stores schema free...
View ArticleUoW / NWorkspace with Linq support
I have blogged about this for quite a while now. Now I’ve finally cleaned up the code and published it at github:https://github.com/rogeralsing/Precio.Infrastructure This is a small framework for...
View ArticleO/R Mapping and domain query optimizations
One of the cons of O/R mapping is that the abstraction is a bit too high. You write object-oriented code and often forget about eventual performance problems. Take this (somewhat naive) example: class...
View ArticlePerformance improvements in EF5
Just saw this post today: http://www.outofmemory.co.uk/entity-framework-5-dramatically-faster-in-net-4-5/ Kudos to the EF team for great progress :-)
View ArticleEntity Framework to REST – EfREST
I’ve been doing a fair amout of rest API coding lately, and what struck me during this time was that it was horribly hard to actually create a clean custom REST API using .NET. Sure, there is WebApi...
View ArticleWhy mapping DTOs to Entities using AutoMapper and EntityFramework is horrible
One of the most common architectures for web apps right now is based on passing DataTransferObjects(DTOs) to and from CRUD services that updates your business/domain entities using tools like...
View ArticleUsing Command Pattern to capture language and intent for services
This is a follow up to my previous post http://rogeralsing.com/2013/12/01/why-mapping-dtos-to-entities-using-automapper-and-entityframework-is-horrible/ That post was about both the technical and...
View Article