Imran
Imran

Reputation: 91

Entity Framework 4 Table Valued Function

I am aware that table valued functions are not supported in previous versions of entity framework. I was wondering if this is now supported in EF 4? I cant see my functions in the edm designer so i'm guessing they are not supported unless I am doing something wrong?

If they are not supported is there a workaround? My table valued function takes a single parameter.

Upvotes: 8

Views: 3366

Answers (2)

Diego
Diego

Reputation: 69

It appears as you can use them...

Link

It uses the GetFriends() table valued function. Still i don't really know how to use it.

Upvotes: 3

JoBot
JoBot

Reputation: 131

Yes, you can definitely use Table-Valued functions with EF. Here's a great link on how this can be achieved: http://blog.ondrejsv.com/post/Using-table-valued-database-functions-with-Entity-Framework-40.aspx#comment

Upvotes: 6

Related Questions