Page 1 of 1

Incorrect syntax near '*' with LINQ Where

Posted: Wed 20 Oct 2021 08:46
by ZENsan
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

Re: Incorrect syntax near '*' with LINQ Where

Posted: Thu 21 Oct 2021 08:41
by MaximG
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