© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
3 replies
Dusty

EF Core + SQLite order by decimal value [Answered]

Hey I tried to sort a query via a decimal column but I get this exception:
System.NotSupportedException: SQLite does not support expressions of type 'decimal' in ORDER BY clauses. Convert the values to a supported type, or use LINQ to Objects to order the results on the client side.
System.NotSupportedException: SQLite does not support expressions of type 'decimal' in ORDER BY clauses. Convert the values to a supported type, or use LINQ to Objects to order the results on the client side.


I searched a bit an people were speaking about using custom collations. Sadly I haven't found anything else about this yet.

I also tried client evaluation but this just takes too long as my table has several million entries :/

Any ideas on this?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Ef core value comparer
C#CC# / help
4y ago
EF-Core data reference [Answered]
C#CC# / help
4y ago
EF Core not fetching sub-entities by Id [Answered]
C#CC# / help
4y ago