开发者

Entity Framework 4 Table Valued Function

开发者 https://www.devze.com 2022-12-27 06:21 出处:网络
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

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 no开发者_开发技巧t supported is there a workaround? My table valued function takes a single parameter.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消