Dynamic repositories with LightSpeed - taking dynamic up a level

added by traskjd
4/27/2011 6:01:32 PM


Ready to think outside the box with the C# dynamic keyword? This post looks at taking the c# dynamic keyword and seeing how much boiler plate code we can get rid of. You'll learn how to take the Repository pattern where developers write a lot of GetFooByName, GetBarByEmailAddress type methods and how to get rid of them - gone, history, finished! Then there's Named Parameters - this post starts looking at how to use them for querying. By the end of this post you'll have a whole new way of looking at things with dyanmic and named parameters!