Hi, try == instead of string.Equals

On Wed, 13 Nov 2024, 08:38 Charlin S, <charli...@hotelhub.com> wrote:

> Hi All,
> Ignite LINQ compiledquery having below error. please suggest me to make it
> work
> Exception has occurred: CLR/System.NotSupportedException
>
>    -
>
> An exception of type 'System.NotSupportedException' occurred in
> Apache.Ignite.Linq.dll but was not handled in user code: 'Method not
> supported: System.String.(Boolean Equals(System.String, System.String))'
> [image: image.png]
> Sample code
> var compiledQuery = CompiledQuery.Compile((string _CountryCode,double
> _KmsDistance) => TestIcache.AsCacheQueryable().Where(htl=> string.Equals(
> htl.Value.CountryCode, _CountryCode) ));
> IQueryCursor<ICacheEntry<string, TestModel>> cursor = compiledQuery(
> CountryCode,KmsDistance);
> var result1 = cursor.ToArray();
> Regards,
> Charlin
>
>

Reply via email to