我有一个Linq表达式,我想将它转换为REST的查询字符串,即
public IQueryable<Organisation> Organisations;
...
var organisations = Organisations.Where(x => x.Name == "Bob");
Run Code Online (Sandbox Code Playgroud)
变
http://restservice.com/Organisations?$filter=Name eq "Bob"
Run Code Online (Sandbox Code Playgroud)