请教linq如何响应json的树形查询条件
展开全部
筛选条件的json格式为
[{"field":"AddOn","operator":"gt","value":"2013-09-25"},{"field":"AddOn","operator":"lt","value":"2013-09-29"},{"field":"IsTop","operator":"eq","value":"1"},{"logic":"or","filters":[{"field":"State","operator":"eq","value":"1"},{"field":"State","operator":"eq","value":"2"}]}
表示以下三个条件:
AddOn在2013-9-25 ~2013-9-29 之间
IsTop=1
[{"field":"AddOn","operator":"gt","value":"2013-09-25"},{"field":"AddOn","operator":"lt","value":"2013-09-29"},{"field":"IsTop","operator":"eq","value":"1"},{"logic":"or","filters":[{"field":"State","operator":"eq","value":"1"},{"field":"State","operator":"eq","value":"2"}]}
表示以下三个条件:
AddOn在2013-9-25 ~2013-9-29 之间
IsTop=1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询