Skip to content

Not working simple things with .Net Core 8  #102

Description

@msstad8

Description

Error: Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.

same code is working in .net 6 not in 8

var existing = await _repoAsync.GetListAsync(x => lstEndpoints.Contains(x.Endpoint.ToLower()), null, null, 0, 20);

Steps to reproduce

  1. use ==> GetList / GetListAsync method
  2. send predicate list.Contains("string")
  3. getting Error:
  4. Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.

Please link to a demo project if possible, this makes your issue much easier to diagnose.

Expected result

Get the list without any error

Actual result

Error: Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions