I am using migratordotnet to sync my SQLServer 2008 database and need to create a column of type Text…
Am at a bit of a loss as to how to do this, as there is no System.Data.DbType.Text??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Worked it out with some trial and error…
DbType of AnsiString and a length of int.MaxValue does the trick
Database.AddColumn("Notification", "Body", DbType.AnsiString, int.MaxValue);