Mapping entity in Dapper

后端 未结 4 993
无人及你
无人及你 2021-01-01 23:39

I\'ve just started working with Dapper and I don\'t seem to find something very simple like mapping an entity to a table in my database:

I have a stored procedure:

4条回答
  •  抹茶落季
    2021-01-02 00:07

    It can't, your user class must be defined to match the result coming back from the query.

    Once you've got the result back you must map it manually to another class (or use AutoMapper)

提交回复
热议问题