用Lambda动态生成Where表达式,最终生成表达式o => ((((((o._FLIGHT_PHASE >= 0) And (o._FLIGHT_PHASE <= 2)) And (o.aN31 < 70)) And (o.aN31 >= 50)) And (o.aN32 < 70)) And (o.aN32 >= 50)),这个生成,是按顺序加小括号,跟需求是差太多啊,比如需要生成:o => (((o._FLIGHT_PHASE >= 0) And (o._FLIGHT_PHASE <= 2)) And (((o.aN31 < 70) And (o.aN31 >= 50)) Or ((o.aN32 < 70) And (o.aN32 >= 50)))),有没有办法控制或者操作条件的优先级?
用Lambda动态生成Where表达式,最终生成表达式o => ((((((o._FLIGHT_PHASE >= 0) And (o._FLIGHT_PHASE <= 2)) And (o.aN31 < 70)) And (o.aN31 >= 50)) And (o.aN32 < 70)) And (o.aN32 >= 50)),这个生成,是按顺序加小括号,跟需求是差太多啊,比如需要生成:o => (((o._FLIGHT_PHASE >= 0) And (o._FLIGHT_PHASE <= 2)) And (((o.aN31 < 70) And (o.aN31 >= 50)) Or ((o.aN32 < 70) And (o.aN32 >= 50)))),有没有办法控制或者操作条件的优先级?
用Lambda动态生成Where表达式,最终生成表达式o => ((((((o._FLIGHT_PHASE >= 0) And (o._FLIGHT_PHASE <= 2)) And (o.aN31 < 70)) And (o.aN31 >= 50)) And (o.aN32 < 70)) And (o.aN32 >= 50)),这个生成,是按顺序加小括号,跟需求是差太多啊,比如需要生成:o => (((o._FLIGHT_PHASE >= 0) And (o._FLIGHT_PHASE <= 2)) And (((o.aN31 < 70) And (o.aN31 >= 50)) Or ((o.aN32 < 70) And (o.aN32 >= 50)))),有没有办法控制或者操作条件的优先级?