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

QueryProviderBase.ExpressionTreeParser property has been replaced by QueryProviderBase.QueryParser

    XMLWordPrintable

    Details

    • Type: Breaking Change
    • Status: Closed (View Workflow)
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.92
    • Component/s: Data.Linq
    • Labels:
      None

      Description

      The reason for this change is that QueryProviderBase does not control what IQueryParser is used to parse the queries. Therefore, it has no access to the ExpressionTreeParser (which might event not be used at all).

      To access the MethodCallExpressionNodeTypeRegistry previously available via the ExpressionTreeParser, you have the following options:

      • If you create the QueryParser in your code, keep track of it and use its NodeTypeRegistry property (or the registry you passed in when creating the QueryParser).
      • If you use the constructor of QueryableBase that automatically creates the QueryParser, you can cast the value of the QueryProviderBase.QueryParser property to the QueryParser class and use that class's NodeTypeRegistry property.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                fabian.schmied Fabian Schmied
                Reporter:
                andreas.obkircher Andreas Obkircher
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: