Alex Rivera | Logout

"Update Model from Database" does not see a type change

Asked 2011-09-15T20:04:02.873
27

I have several columns that I changed from Int to BigInt.

I opened up my EF model and did an 'Update Model from Database' and expected to see those columns now be Int64s. But they are still Int32s.

(I ran it several times just to be sure.)

I double checked my database and the columns are definitely BigInts.

So... does 'Update Model from Database' not work for a change of data type? Does it need to be manually applied?

Edit
Report

1 Answer

5

Correct - data types don't appear to update automatically. You can simply change the data type in the model view using the Properties window and change the Type to Int64.

answered 2011-09-15T20:15:45.303

Your Answer