'EF CORE "dotnet ef dbcontext scaffold" Define Data Types
I've been searching the web for a while, but can't find what I'm looking for.
Basically when I run the aforementioned code against my Sqlite DB, it generates all the classes etc, but instead of rendering booleans etc, it chooses to create them as byte[] and all floating point numbers come through as doubles.
I don't want this, as doubles tend to do poorly when doing math against them, and can create incorrect values.
So basically what I want to know, is, is there a way to define the mapping of types. So all "REAL" in the database are created as Decimal and BIT as bool?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
