News for hackers. Stuff that matters.
Re:Dapper.NET - "micro-ORM" that poweres StackOverflow goes ... by bad_user on Tuesday April 05, 2011 @04:52AM (#2410207)
I don't see code-generation; what are you referring to?
Re:Dapper.NET - "micro-ORM" that poweres StackOverflow goes ... by singular on Tuesday April 05, 2011 @04:53AM (#2410210)
I mean dynamic code generation at runtime, rather than actually outputting text :-)

E.g. CreateParamInfoGenerator() at line 208.

Re:Dapper.NET - "micro-ORM" that poweres StackOverflow goes ... by bad_user on Tuesday April 05, 2011 @06:16AM (#2410368)
Yes, you're right. It's pretty cool.

Also, if you're looking for other cool samples, there's a chapter in "Beautiful Code" by Charles Petzold you may find interesting.

Re:Dapper.NET - "micro-ORM" that poweres StackOverflow goes ... by arethuza on Tuesday April 05, 2011 @05:39AM (#2410297)
It looks like it is using the Reflection Emit capabilities of .Net:

http://msdn.microsoft.com/en-us/library/8ffc3x75.aspx