No results yet no error with N-Tier Entity Framework

我怕爱的太早我们不能终老 提交于 2019-12-25 05:22:02

问题


I have created a demo project using the N-Tier Entity Framework VS2012.

the problem is that there are no results returned no mather what i request.

No Errors are thrown of detected?

Any suggestions here are welcome?


回答1:


Make sure to call the AsQueriable() method for requesting data from the backend.

N-Tier Entity Framework supports both, local and remote queries. While e.g. context.Orders.ToList() only returns what’s already in client memory, you can call context.Orders.AsQueriable().ToList() to make the query to be executed on the server.

You may also want to consult the framework’s user guide found at http://ntieref.codeplex.com/ for some step-by-step guidance.



来源:https://stackoverflow.com/questions/20397592/no-results-yet-no-error-with-n-tier-entity-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!