In Microsoft SQL Server 2008 and later versions, we could create functions that return tables as return values. These functions are known as Table Valued Functions . Until Entity Framework Version 5, there was no way to use such functions with Entity Framework. However, with Entity Framework 5 (Visual Studio 2012), it is possible to use Table Valued Functions.
In this recipe, we will see how to do so. The function that we will use will return the details of files uploaded by a user, and we will display the details on