How to return List<dynamic> with Dapper.NET ORM that can bindable?

烈酒焚心 提交于 2020-01-06 07:09:52

问题


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.



来源:https://stackoverflow.com/questions/55308065/how-to-return-listdynamic-with-dapper-net-orm-that-can-bindable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!