dyslexicanaboko / simple-class-creator

A utility for creating mundane crud work including table to model, model to DTO and other things no one really wants to do by hand.
MIT License
1 stars 0 forks source link

Dapper type map errors on no match #27

Closed dyslexicanaboko closed 2 years ago

dyslexicanaboko commented 2 years ago

An exception is thrown when the Dapper Generator is trying to map from SQL Server DB Type to DB Type. It is known already that there isn't an explicit mapping for everything.

Reproduction steps:

  1. Have a table that has a TinyInt in it
  2. Run the generator
  3. It doesn't map to anything

What should the behavior be?

dyslexicanaboko commented 2 years ago

Turns out the mapping for TinyInt is Byte. The point is though that the mappings aren't all there. What happens when something cannot be mapped. Need to test all of this.

dyslexicanaboko commented 2 years ago

Being resolved as part of the branch for #22