-
Notifications
You must be signed in to change notification settings - Fork 387
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
Scaffold problem #394
Comments
Looking at the source I think I can see what's occurring here. Using Internally all the mappings are stored in the _storeTypeMappings dictionary. However when this is referenced in CreateMappingFromStoreType it won't match. The fallback in that function is it then truncates the string after the opening parentheses (meaning just As to the fix? I suppose it could either be some string manipulation before setting StoreType property or maybe a custom equality comparer for the dictionary. I guess I'd lean toward the former, but it could have unintended consequences. |
yep, seems to be fixed :D, thanks |
Steps to reproduce
I just created a simple database with two tables.
Then i scaffold using vs 2017:
Then i got
The issue
I tried a simple
But i got:
Workaround
I changed each property from sbyte to byte and added
Further technical details
MySQL version: 5.7.19
Operating system: Windows 10 32bits
Pomelo.EntityFrameworkCore.MySql version: 2.0.1-preview-10067
The text was updated successfully, but these errors were encountered: