Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 migratordotnet 同步我的 SQLServer 2008 数据库,并且需要创建一个 Text 类型的列...
由于没有 System.Data.DbType.Text,我对如何做到这一点有点茫然?
通过一些试验和错误解决了...
AnsiString 的 DbType 和 int.MaxValue 的长度可以解决问题
Database.AddColumn("Notification", "Body", DbType.AnsiString, int.MaxValue);