This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I wanted to define a Entity<string> in the model designer, but unfortunately on runtime the migration fails on an SQL Server with an SqlException:
Thanks for any hint, Tom |
|
|
Make sure you specify a length restriction so the underlying column is created as a varchar(x) rather than a varchar(MAX). varchar(MAX) cannot be used as a key column which is the error you are seeing.
|
|
|
Perfect, works like a charm. Tom |
|