You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 float. Here's the code for reading values: (Note, there's a bit of duplication required in this method.)
Activity
ilmalte commentedon May 19, 2023
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.
src/EFCore.Sqlite.Core/Storage/Internal/SqliteTypeMappingSource.cs
Then I would cover the new type in the test Create_and_clone_with_converter.
efcore/test/EFCore.Sqlite.Tests/Storage/SqliteTypeMappingTest.cs
Line 78 in 6b97368
Any guidance, suggestion or heads up?
bricelam commentedon May 19, 2023
@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
float
. Here's the code for reading values: (Note, there's a bit of duplication required in this method.)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
feat: support half for Sqlite