Incorrect syntax near '*' with LINQ Where

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
ZENsan
Posts: 1
Joined: Wed 20 Oct 2021 08:38

Incorrect syntax near '*' with LINQ Where

Post by ZENsan » Wed 20 Oct 2021 08:46

Hi!

We are facing some ridiculous problem with LINQ where condition building.
So if there is a LINQ statement like:

Code: Select all

var LExpression := FContext.SomeTable;
var LOrmEntry := FContext.GetEntity<TOrmSomeTable>(From(LExpression).Where(LExpression.SomeStringFIeld = AStringValue));
And it always fails if the AStringValue is a string with a single * character. It works fine with strings longer than one character like (m*, *_ etc.).

Using EntityDAC version 2.3.4

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Incorrect syntax near '*' with LINQ Where

Post by MaximG » Thu 21 Oct 2021 08:41

Thank you for the information, however, it's not enough to reproduce the issue. Please compose and send us a simplest sample, execution of which causes the issue. In addition, we will need the model (*.enml) used in this sample
For your convenience, please use the e-support form https://www.devart.com/company/contactform.html

Post Reply