EF6 遷移錯誤 :The underlying provider does not support the type ‘nvarchar(max)‘.

問題1:

報錯:Mysql 創建前以文件報錯==> The underlying provider does not support the type 'nvarchar(max)'.

背景:之前有在mysql與Sql Server數據庫之間進行切換,可能導致一些問題

解決:刪除全部遷移文件和數據庫,重新創建遷移文件和數據庫(執行一遍add-migration InitialCreate  和 update-database)