12 July 2013
In part three I cover how to use alternate constructors for types used with Dapper. In parts 1 & 2 I used the default parameterless constructor but that doesn't work in every situation.
Dapper can also make use of a constructor that matches the type and field names returned in a recordset in addition to completely custom constructors that don't mach up to returned recordsets.
Lastly, I cover how to use a custom constructor and initialize a property during the Dapper mapping using Ling and a simple lambda expression.
Intro To Dapper - Part 3 from Jon Wear on Vimeo.
Source code: https://github.com/genghisjahn/DapperIntroPt1/archive/Pt3.zip
- Life without a .Net
- Poor Man's Interface With the Dynamic Keyword
- C# is Case Sensitive...Right?
- Screencasting on a Budget
- Getting Started With Dapper Part 2
- An apology to Jon Skeet
- My First Screen Cast - Getting Started with Dapper Pt1.
- A Case for the Interface
- jQuery tmpl plugin example for ASP.Net
- Time to learn