Entity framework Code First - configure mapping for SqlQuery

前端 未结 4 727
无人共我
无人共我 2020-12-05 15:24

I\'m using Entity Framework 5 (with Code First approach) to populate a class of mine from a legacy stored procedure with parameters, and this is working fine (details follow

4条回答
  •  既然无缘
    2020-12-05 16:22

    I found here:

    http://entityframework.codeplex.com/workitem/233?PendingVoteId=233

    that "The SqlQuery method is designed not to take any mapping into account ...".

    They say also "We agree that it would be useful to have the option to make SqlQuery honor Column attributes so we're keeping this issue open and putting it on our backlog for future consideration.", so, if you have my same problem, please vote :-)

提交回复
热议问题