我有银灯应用程序。在客户端我有使用该 Guid 的 Guid 列表当我选择 26 个客户端时我可以检索客户的所有数据它工作正常但是当我尝试访问超过 26 个客户端的数据时它给了我类似的错误
查询 GetAtclientsERCWithAllInformation 的加载操作失败,找不到远程服务器
我的客户端看起来像
var query = formscontext.GetATClientsERCWithAllInformationQuery(guid);
try
{
LoadOperation<ATClient> _loadReturnTypeOperation = formscontext.Load(query);
_loadReturnTypeOperation.Completed += (s, e) =>
{
some code goes here
}
我的服务器端看起来像
[Query(HasSideEffects=true)]
public IQueryable<ATClient> GetATClientsERCWithAllInformation(List<Guid> clientsGuids)
{
return this.ObjectContext.ATClients.Include("ClientEfileInfo").Include("ATClientImages").Include("ATPreparer").Include("ATPreparer.ATFirm").Include("ATClientReturns")
.Include("ATClientReturns.ATForms").Include("ATClientReturns.ATForms.FormsMaster").Where(p => clientsGuids.Contains(p.ClientGUID));
}