Search found 1 match

by ZENsan
Wed 20 Oct 2021 08:46
Forum: EntityDAC
Topic: Incorrect syntax near '*' with LINQ Where
Replies: 1
Views: 13942

Incorrect syntax near '*' with LINQ Where

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