我在网上找不到任何资源,其中包含将 LINQKIT 与 WCF 数据服务一起使用的示例。可能吗 ?我试图这样做,但它在方法访问中的 ExpressionVisitor 类中失败,错误 - 未处理的表达式类型 10000。
throw new Exception (string.Format ("Unhandled expression type: '{0}'", exp.NodeType));
有没有其他选择。
表达式示例如下所示。它构建成功,但在运行时出现上述错误。
DataServiceQuery<ClassName> query = (DataServiceQuery<ClassName>)
(from c in data.<ClassName>.AsExpandable()
where c.<ChildClass>.Any(SamplePredicate.Compile())
select c);