Support for Table Valued Functions in EF6 Code First?

前端 未结 6 871
走了就别回头了
走了就别回头了 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条回答
  •  庸人自扰
    2021-02-07 10:32

    This is now possible. I created a custom model convention which allows using store functions in CodeFirst in EF6.1. The convention is available on NuGet http://www.nuget.org/packages/EntityFramework.CodeFirstStoreFunctions. Here is the link to the blogpost containing all the details: http://blog.3d-logic.com/2014/04/09/support-for-store-functions-tvfs-and-stored-procs-in-entity-framework-6-1/

提交回复
热议问题