In this post I dealt with a simple extension function to flatten a tree and in one of the comment Robert shared an interesting link that deal with the creation of a wrapper structure to use LINQ style function on tree structure. That article is really interesting, but the adopted solution requires to create a [...]
I’m writing a simple Dto generator, and today I found a challenging problem. I supported dto composition like this: I have a CustomerDto3 that have only CustomerId and ContactName properties, then I want to autogenerate a OrderTestDto that have a Customers property of type CustomerDto3. The syntax on My T4 generator is this one. SyntaxCode [...]
Continue reading about Manipulate Expression Tree in DtoGenerator
I have a little validation library that must support localized error messages, it uses a simple techniques, when you set an error message for a specific validator, if you do not want localization you can simply pass a single string, but if you want message to be localized, you specified two strings, one is the [...]
For those used to ORM like NHibernate, the approach to Entity Framework is quite simple, but I’ve noticed that for people that never heard of ORM in general, EF tends to create some confusion. I see people that make confusion between LINQ and EF, LINQ is the Language Integrated Query, it can be used to [...]





