alkampfer on November 20th, 2009

If you ever tried to implement a linq provider, you know that this is not a simple task. This is true for a full linq provider, but sometimes we need only a basic support, and in these situations there is probably a simpler approach.
Suppose you need to give LINQ support to find user in [...]



kick it on DotNetKicks.com

Continue reading about Linq provider via IEnumerable

alkampfer on August 12th, 2009

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 syntax [...]



kick it on DotNetKicks.com

Continue reading about Manipulate Expression Tree in DtoGenerator

alkampfer on July 27th, 2009

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 [...]



kick it on DotNetKicks.com

Continue reading about Expression tree to the rescue

alkampfer on January 8th, 2009

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 query [...]



kick it on DotNetKicks.com

Continue reading about Entity Framework first steps

alkampfer on November 22nd, 2008

If you still work with windows forms and cannot move all of your projects to WPF, you probably gets annoyed by the limitation of the standard BindingList<T> included in the framework. In an old post I showed how can you create a specialized BindingList<T> to support generic Find() thanks to reflection, but this is not [...]



kick it on DotNetKicks.com

Continue reading about Extend BindingList with filter functionality