-
Notifications
You must be signed in to change notification settings - Fork 3.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
Microsoft.Data.Sqlite: Support Half #30931
Comments
Hey @bricelam, may I give a try to work on this? Do you see this implementation for Sqlite only? If so, I was thinking about starting from this class and create the mapping for the type. Then I would cover the new type in the test Create_and_clone_with_converter.
Any guidance, suggestion or heads up? |
@ilmalte Sure, feel free to work on it! Yes, this issue is just about SQLite. First, you'll need to add support for it in the ADO.NET provider. Just follow what we do for efcore/src/Microsoft.Data.Sqlite.Core/SqliteValueReader.cs Lines 202 to 205 in c983103
And, here's the code for writing: efcore/src/Microsoft.Data.Sqlite.Core/SqliteValueBinder.cs Lines 161 to 165 in c983103
Then yeah, for the EF Core changes, the type mapper is the right place. We should also update the scaffolding code which uses heuristics to determine the CLR type: efcore/src/EFCore.Sqlite.Core/Scaffolding/Internal/SqliteDatabaseModelFactory.cs Lines 696 to 707 in c983103
|
Similar to how we handle
float
, we could use REAL in the database for these values.The text was updated successfully, but these errors were encountered: