在将项目更新到.net核心(从完整的.net)之前,我已经习惯了这样做,并且操作beetwen两个表达式:
public class ExpressionBuilder<T>
{
private Expression<Func<T, bool>> _mainExpression;
public ExpressionBuilder()
{
_mainExpression = e => true;
}
public void AddExpression(Expression<Func<T, bool>> expression)
{
_mainExpression = _mainExpression.And(expression);
}
public Expression<Func<T, bool>> Build()
{
return _mainExpression;
}
}
现在变量_mainExpression没有实现的方法And。 我该怎么做才能合并两个表达式?
答案 0 :(得分:0)
试试这个:
WARNING in ./main.js from UglifyJs
Condition always true [./d3.v3.min.js:5,23414]
Condition always true [./dataTables.bootstrap.min.js:5,13]
Condition always true [./jquery.dataTables.min.js:5,13]
ERROR in ./jquery.dataTables.min.js
Module not found: Error: Cannot resolve module 'jquery' in /myapp/app/js
@ ./jquery.dataTables.min.js 5:52-111
ERROR in ./dataTables.bootstrap.min.js
Module not found: Error: Cannot resolve module 'jquery' in /myapp/app/js
@ ./dataTables.bootstrap.min.js 5:52-128
ERROR in ./dataTables.bootstrap.min.js
Module not found: Error: Cannot resolve module 'datatables.net' in /myapp/app/js
@ ./dataTables.bootstrap.min.js 5:52-128
另请查看this。