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:
None 
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
Description:
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:
NA
[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:

http://stackoverflow.com/questions/42124260/mysql-connector-for-net-core-truncates-text-to...
[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.