Lambda expression Contain () method does not work in Advantage Database 9?
-
30-06-2021 - |
문제
I am using Sybase Advantage Database 9.1
and I try to use Lambda expression Contain method to retrieve data ,but it does not work.
var order = order.Where(x => x.name == "James");
it return 10 rows data.
but If I change to
var order = order.Where(x => x.name.Contains("James"));
it return 0.
x.name is string field.
anybody know why it happened?
How should I do to use Contain method?
thanks
해결책
I believe that support for the canonical function Contains
was added with changes for Entity Framework v4. That was in Advantage v10.x. Those changes were not merged back into the v9.x branch.
제휴하지 않습니다 StackOverflow