In rev. 2f73f171cfdf Dapper expects database column names to match property
names exactly. When you have a database naming convention that uses lower case
first letters while the objects adhere to the C# naming conventions (i.e.
upper-case first letters), the properties are never set.
Solution:
Either document the case sensitivity or enable case insensitive property
matching.
For the latter option a single change on line 419 is all it takes:
select new { Name = n, Info = properties.FirstOrDefault(p => p.Name.Equals( n,
StringComparison.OrdinalIgnoreCase ) ) }
).ToList();
Original issue reported on code.google.com by marnixva...@gmail.com on 19 Apr 2011 at 12:39
Original issue reported on code.google.com by
marnixva...@gmail.com
on 19 Apr 2011 at 12:39