Support for Table Valued Functions in EF6 Code First?

前端 未结 6 853
走了就别回头了
走了就别回头了 2021-02-07 10:03

Is it possible to call a TVF in EF6 Code First?

I started a new project using EF6 Database first and EF was able to import a TVF into the model and call it just fine. <

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 10:25

    A similar thing is now also provided by the EntityFramework.Functions package. This one seems to be more up-to-date.

    The source code is available on GitHub, and the introductory article explains the basic principles.

提交回复
热议问题