Bug #84952 EFCore: Medium text gets truncated when update
Submitted: 10 Feb 2017 16:53 Modified: 10 Feb 2017 21:40
Reporter: Gabriela Martinez Sanchez Email Updates:
Status: Verified Impact on me:
Category:Connector / NET Severity:S3 (Non-critical)
Version:6.10.1 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[10 Feb 2017 16:53] Gabriela Martinez Sanchez
The database column I am trying to update is of "mediumtext" type. Yet when I try to update it from my code, the value gets truncated to 255 characters.

How to repeat:
Create a DBContext with an entity with a medium text database type. 

Suggested fix:
[10 Feb 2017 16:56] Gabriela Martinez Sanchez
Also using Asp.Net Core application
[10 Feb 2017 21:03] Peter Taps
More information.

Instead of using entity framework, I switched to using plain old MySqlConnection/MySqlCommand classes. Inserts and updates seem to work now. I guess the bug is in MySql EF layer.

Please look at my post on stackoverflow:

[10 Feb 2017 21:40] Gabriela Martinez Sanchez
I see.. thanks for clarifying that. The issue could be in the Mapper for EF Core. 
This fix would be included for the next release of the series 6.10.x. 
You will receive all notifications through the updates on this bug.
Thanks a lot for your feedback.