These parts of the stack trace:

MySql.Data.Entity.EFMySqlDataReader.ChangeType(Object sourceValue, Type targetType) +566    
MySql.Data.Entity.EFMySqlDataReader.GetValue(Int32 ordinal) +231    
System.Data.Common.Internal.Materialization.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) +215    
System.Data.Common.Internal.Materialization.Shaper.GetPropertyValueWithErrorHandling(Int32 ordinal, String propertyName, String typeName) +68    
lambda_method(Closure , Shaper ) +1088    
System.Data.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +218    
lambda_method(Closure , Shaper ) +291

suggest that the MySQL Linq provider is having problems with some of your data - if looks like there's a field which in your object model is defined as an int, but the corresponding data in the database isn't represented as an integer.

Without knowing more about your database and how you set up your Entity Framework model, I couldn't say exactly what the problem is.

Related Articles