408 votes9 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Resurrecting this until we have true mapping to TVFs in EF Core.
Entity Framework Core supports invoking TVFs in a FromSql() call. But does not provide mapping for TVFs.Paweł Kadłuczka commented
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/