How to return List with Dapper.NET ORM th

2019-08-30 06:25发布

问题:

This question is old now, Dapper data-view binding are fixed as shown answer below :)

回答1:

I've added TypeDescriptor-based bindings to DapperRow, which means that anything obtained via Query() (the dynamic API) should now bind to much common UI controls. Anything from 1.60.5 or above should work.

Let me know!

Caveat: it doesn't currently work for empty results (zero rows). I know how to implement that (see notes here), but that would require some additional changes to the query implementation that I have not done as-yet.