Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

System.NotSupportedException: Order By does not support in sqlite

$
0
0

Hi Guys,

I want to try condition in orderby SQLite but it's supported have you any solution?

    contactRespDetail.contact = _connection.Table<Contact>()
      .OrderBy(s => s.Fullname)   // supported
      .OrderByDescending(x => x.Companyname.Contains("Temporary Contact")) // do's not supported.
      .Where(x => x.StateCode == 0)
      .Skip(skip)
      .Take(take)
      .ToList();

Thanks.


Viewing all articles
Browse latest Browse all 204402

Trending Articles