[英]How do you query SQL Function as IQueryable in Entity Framework 6
I have a t-sql table function called GetPeople. 我有一个名为GetPeople的t-sql表函数。 I was curious how I create an IQueryable in Entity Framework 6 so I can do a few things in LINQ on that query. 我很好奇如何在Entity Framework 6中创建IQueryable,以便可以在LINQ上对该查询执行一些操作。
Is that even possible? 那有可能吗?
you should check this: 您应该检查以下内容:
https://codefirstfunctions.codeplex.com/ https://codefirstfunctions.codeplex.com/
and this: 和这个:
http://blog.3d-logic.com/2014/04/09/support-for-store-functions-tvfs-and-stored-procs-in-entity-framework-6-1/ http://blog.3d-logic.com/2014/04/09/support-for-store-functions-tvfs-and-stored-procs-in-entity-framework-6-1/
is explained, cheers. 解释说,欢呼。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.