I predict that the C# 4 “dynamic” keyword will be the most abused feature. It will be used for everything from ducktyped dependency injection, dynamic dictionaries and about a million Rails like frameworks. All in a very non refactor friendly way. …It will rarely be used to interop with dynamic .NET languages. The least used…More
Alsing christmas dance
Merry christmas to all of you! http://elfyourself.jibjab.com/view/ca5hncCzPoTmuabEMxRYMore
Linq To Sql: POCO and Value Objects
Fetching POCO Entities and Value Objects using Linq To SQL Linq To Sql support neither POCO Entities nor Value Objects when using it as an O/R Mapper. What we can do is to treat it as a simple auto generated Data Access Layer instead. By treating it as a DAL we can manually handle the data…More
Linq To Sql: Dynamic Where Clause
Dynamic where clause using Linq To SQL: Let’s say we need to implement a search method with the following signature: IEnumerable FindCustomers(string name,string contactName,string city) If the requirement is that you should be able to pass zero to three arguments to this method and only apply a “where” criteria for the arguments that are not null. Then we can…More
Two 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 studying a lot of different implementations I have seen two distinct patterns. I call the first pattern “Aggregate Graph”: When…More
