How can I pass a lambda expression to a WCF service?

后端 未结 6 1633
清酒与你
清酒与你 2020-11-29 12:56

My current project is using the IDesign architecture, so all of my layers are services. I wanted to have my Read method in the CRUD of my resource access layer take a predic

6条回答
  •  感动是毒
    2020-11-29 13:47

    Perhaps a dynamic query would work in your situation?

    http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

    You would pass a where clause string to the service which would validate and convert it to an expression

提交回复
热议问题