Uploaded image for project: 're-motion'
  1. RM-3573

Provide an automatic transformation for VB's Information.IsNothing handler

    Details

    • Sprint:

      Description

      Support for Visual Basic .NET queries containing expressions that use the IsNothing(...) method (rather than the Is Nothing operator) is added via a transformation implemented in the VBInformationIsNothingExpressionTransformer class. The transformation, which is enabled by default, replaces expressions calling the IsNothing method to BinaryExpressions comparing with a null constant.

      That way, expressions similar to the following will now produce "normalized" expression trees:

      Where IsNothing(emp.ReportsTo)
      

      The expression tree created by the transformation is equivalent to that produced by:

      Where emp.ReportsTo Is Nothing
      

      For LINQ providers customizing the expression tree preprocessing steps applied by the re-linq front-end, add an instance of the VBInformationIsNothingExpressionTransformer class to the ExpressionTransformationStep.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Fabian Schmied
                Reporter:
                Fabian Schmied
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m