I made the update of MySQL.Data and MySQL.Data.Entity from version 6.9.9 to version 6.10.4 and started to get the error below:
Inheritance security rules were violated by type: 'MySql.Data.MySqlClient.MySqlProviderServices'. Derived types must match the security accessibility of the base type or be less accessible.
This error occurs at the time the DbContext instance is created