开发者

Entity Framework 4 Function Import 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜