Im aware of this post: EF5 Code First - Changing A Column Type With Migrations. I cant leave a comment to ask my question because of my rep so. Concerning the best answer, what goes in the Up() and what goes in the Down().
Asked
Active
Viewed 608 times
1
-
Can you give more information? What are you wanting to change from/to? – Kevin R. May 03 '17 at 22:26
-
How is your use case different from the post you mentioned? What are the column type you are trying to alter, in simple use case you will only need AlterColumn function in both Up and Down. – madan May 04 '17 at 18:57
-
@Kevin R. wanting to change a type from string to int. – Neltharion May 05 '17 at 10:53
-
but i came across this post: http://stackoverflow.com/questions/17894906/ef-migration-for-changing-data-type-of-columns that answered my questions – Neltharion May 05 '17 at 11:07