Environment:
Ubuntu 16.04, Asp.Net Core 1.1, MySql.Data 7.0.6-IR31, MySql.Data.EntityFrameworkCore 7.0.6-IR31
The MySql database column in question is of data type "mediumtext." Here is my pseudo-code:
string qry = "UPDATE MyDb.MyTbl SET Comments = @p0 WHERE ID = @p1";
string comments = "a long long string";
using(var db = new AppDbContext()) {
var numRecords = db.Database.ExecuteSqlCommand(qry, comments, id);
return numRecords;
}
When executed, the database table gets updated as expected. However, only the first 255 characters are being written into my "Comments" column.
Wondering if anyone can suggest a workaround.