You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
608 B

2 years ago
  1. using System.Linq.Expressions;
  2. namespace SqlSugar
  3. {
  4. public class LambdaExpressionResolve : BaseResolve
  5. {
  6. public LambdaExpressionResolve(ExpressionParameter parameter) : base(parameter)
  7. {
  8. var lambda = base.Expression as LambdaExpression;
  9. var expression = lambda.Body;
  10. base.Expression = expression;
  11. if (parameter.Context.ResolveType.IsIn(ResolveExpressType.FieldMultiple, ResolveExpressType.FieldSingle)) {
  12. parameter.CommonTempData = CommonTempDataType.Append;
  13. }
  14. base.Start();
  15. }
  16. }
  17. }