-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Data type 'varchar' is not supported in this form #4759
Comments
Ok the on model creating was scafolded a while back by reveng . I see hascolumntype is varchar (note no length) and hasmaxlength as length. I presume this has changed now? Shall I re reveng or is there a new dotnet cli tool now. |
The RevEng tool has been updated to produce the right results - see #4348. Or you can just change the code manually to specify e.g. |
Ok thanks it's a lot of fields so I'll reveng again. I'll do it tomorrow and close this if it all goes ok. |
OK I had to manually change (long job) this because I couldn't get donet ef to work or dnx ef. Probably due to the flux at the moment. Thanks for your help |
Sorry - it is a problem at the moment (hopefully fixed soon). But I should have said that the |
I also got the same error: =>{Data type 'varchar' is not supported in this form. Either specify the length explicitly in the type name, for example as 'varchar(16)', or remove the data type and use APIs such as HasMaxLength to allow EF choose the data type.'} before fixed : It is working. |
Just changed to the new AspNetCore packages on vnext with vs 2015 update2 rc
The below used to work before this. I was on the last known good packages before the name change on vnext.
I have a derived DbContext which sets a database depending on a routing value as below
It seems whenever I use this context I am getting
Any ideas.
This is a preliminary inquiry . I realise a repro would be best but maybe its a known thing before I go down that road
The text was updated successfully, but these errors were encountered: