数据不是来自 Silverlight 中的 RIA 服务

发布于 2024-08-10 02:27:11 字数 554 浏览 1 评论 0原文

我的连接正常,但发生了一些变化,现在数据没有显示。这是一个之前运行过的简单查询,仅返回所有实体。我在 LoadOperation 调用上放置了断点,它会触发并获取 0 个实体。我还在服务本身上放置了一个断点,并且在 LoadOperation 计算之前它不会中断。 LoadOperation 完成后,然后在我们需要数据之后调用服务查询。我唯一能想到的可能是问题的是我向解决方案添加了 2 个 WCF 服务。 WCF 服务会阻止 RIA 工作吗?关于还有什么可能导致问题的任何想法?

客户:

LoadOperation<Project> loadOp =
                this._projectContext.Load(this._projectContext.GetProjectsQuery());

服务:

public IQueryable<Project> GetProjects()
{
    return this.Context.Projects;
}

看,确实很基本,但不起作用。

I had a connection working but something changed and now the data isn't showing up. It is a simple query that worked before that just returns all entities. I put in break points on the LoadOperation call and it fires and gets 0 entities. I also put a break point on the service itself, and it does not break before the LoadOperation evaluates. After the LoadOperation completes, then the service query is called... well after we needed the data. The only thing that I can think of that could be a problem is that I added 2 WCF services to the solution. Would WCF services stop the RIA from working? Any ideas on what else could cause the problem?

Client:

LoadOperation<Project> loadOp =
                this._projectContext.Load(this._projectContext.GetProjectsQuery());

Service:

public IQueryable<Project> GetProjects()
{
    return this.Context.Projects;
}

See, real basic, but not working.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不知所踪 2024-08-17 02:27:11

您需要在 Load 操作上放置一个回调方法,然后在返回时检查 LoadOperation.Error 的结果。在该错误中,您将找到异常,它会让您知道问题是什么(您可能必须检查内部异常才能获取完整的详细信息)。

You need to put a callback method on your Load operation and then check the results of the LoadOperation.Error when it comes back. In that error you will find the exception which will let you know what the problem is (you will probably have to check the inner exception to get the full details).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文