Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11985

.NET: CompiledQuery.Compile does not work with string parameters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.5, 2.6, 2.7, 2.7.5
    • Fix Version/s: 2.8
    • Component/s: platforms
    • Labels:

      Description

      String parameters always produce an exception, example:

      CompiledQuery.Compile((string empName) => persons.Where(x => x.Value.Name == empName))
      

      Result:

      System.InvalidOperationException: Error compiling query: entire LINQ expression should be specified within lambda passed to Compile method. Part of the query can't be outside the Compile method call.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ptupitsyn Pavel Tupitsyn
                Reporter:
                ptupitsyn Pavel Tupitsyn
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: