BigBossCard wrote:
This happened with V5.0, never saw this behavior with 4.2.
- I added a new column "sequence" of type smallint
- Synchronized database to refresh model
- Column was added as type bool
I can't reproduce it with a default project. (5.0.8 ). Type converters are added automatically but in case of reverse engineering / sync with DB, this is only done if a type conversion is defined. This type conversion, defined in the project settings, is then applied to make it easier to define fields of a given type.
You likely have defined a type conversion for Bool <-> numeric type converter defined for the relational model data .net type Int16, which is then automatically converted to bool using the defined type converter. This wasn't always done in 4.2. If you don't want to auto-assign type converters, either remove the type conversion, or uncheck 'Auto-assign type converter to field mapping' under 'Entity Model->General'