开发者

Entity Framework 4 Function Import Dataset

开发者 https://www.devze.com 2023-03-25 08:20 出处:网络
I have a stored procedure which does a query such as SELECT * FROM TABLE Now, when I do a Function Import, how can I return the result as a dataset ?

I have a stored procedure which does a query such as

SELECT * FROM TABLE

Now, when I do a Function Import, how can I return the result as a dataset ?

does EF not support return type of a dataset ? 开发者_如何学编程


No EF doesn't support return type as data set. Function import must return scalar, strongly typed entity or complex type mapped in entity model (EDMX). If you want to return DataSet use SqlDataAdapter instead.

0

精彩评论

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