WCF DataService 加载数据问题
我正在研究 C#.Net 4.0。我创建了 WCF Dataservice,并且有一个客户端层。 我有两个表,它是通过 SQL Server 2008“视图”连接的。当我在 SQl 2008 Management Studio 或 Web 浏览器中查看时,我能够看到正确的输出。 但是当我从客户端连接时(通过代理生成和上下文), 它给出的值与来自浏览器或数据库“视图”的值不同。 那么可能是什么问题。
I am working on C#.Net 4.0. I created WCF Dataservice and i have a client layer.
i have two tables and its been joined through SQL Server 2008 "View",. while i seeing in the SQl 2008 management studio or from the Web browser i was able to see the right output.
But when i connected from the client(through Proxy generation and context),
its giving the different value than which is coming from browser or Database "View".
So what could be the issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,似乎是 SQL Management Studio 的错误,查询是错误的,它应该给出零记录,但我能够在 SQL Management Studio 中看到一些记录。所以 WCF DataService 没有任何问题,它全部来自 SQL Management Studio。
Well, seems its SQL Management Studio bug, the query was wrong and it supposed to give zero records, but i was able to see some records in the SQL Management Studio. So nothing wrong with WCF DataService, its all from SQL Management Studio.