threenine / Threenine.Data

A Microsoft Entity Framework Core plugin providing Unit of work and repository pattern abstraction layer with common functionality
Other
494 stars 108 forks source link

Not working simple things with .Net Core 8 #102

Open msstad8 opened 2 months ago

msstad8 commented 2 months ago

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.