定义查询,“枚举没有产生任何结果” [英] DefiningQuery, "Enumeration yielded no results"
问题描述
大家好,我正在编写一个简单的LOB SilverLight应用程序,我正在使用EF和.Net Ria Services来访问我的数据。到目前为止,我发现这些技术非常强大和灵活但是...我已经定义了一个DefiningQuery元素,它在模型中是sufaced ok。但是它没有将任何数据返回给我的程序。我已经验证了查询在SQL Management Studio中工作,我已经编写了一个方法来填充我的Domain Class。希望我错过了一些非常简单的事情。任何帮助都会非常感激,因为我已经尝试了几天了。非常感谢,Jonny
Hi all, I'm writing a simple LOB SilverLight application and I'm using the EF and .Net Ria Services to access my data. So far I'm finding these technologies very powerful and flexible however... I have defined a DefiningQuery element and it is sufaced in the model ok. However it isn't returning any data to my program. I have verified that the query works in SQL Management Studio and I've written a method to populate it in my Domain Class. Hopefully I'm missing something very simple. Any help would be greatly appreciated as I've been trying to work this out for a couple of days now. Many thanks, Jonny
推荐答案
你能发布模型的相关部分吗?
Can you post the relevant parts of your model?
这篇关于定义查询,“枚举没有产生任何结果”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!