-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document SQLite client evaluation of decimals as a specific breaking change #1432
Comments
Might also be worth mentioning DateTimeOffset, TimeSpan, and |
The operations we should block server-eval for:
* We can make TimeSpan work by registering two UDFs. See bricelam/EFCore.SqliteEx#1 |
@bricelam What does a tick represent as opposed to an x? Also, would it, theoretically, be possible to make all of these work (or at least all that are non-lossy) by registering functions that understood the mapping and did conversion back to the appropriate .NET type? If so, should we consider doing this automatically at least when using EF Core? |
✔ - Works in SQL Yes, in theory, we could register UDFs for every operation and translate to them. But this is different from TimeSpan where we only need two UDFs to enable every operation.
I don't like the idea of doing it automatically since our UDF names may collide with the application's. The TimeSpan issue mentions making it an opt-in part of the provider via |
Opt-in seems a good approach. |
Added to docs here: https://docs.microsoft.com/en-us/ef/core/providers/sqlite/limitations#query-limitations |
See dotnet/efcore#15324
The text was updated successfully, but these errors were encountered: