문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top