When I want to connect to MySQL by Entity framework (code first) I get this error:
(22,12) : error 2019: Member Mapping specified is not valid. The type 'Edm.Byte[Nullable=False,DefaultValue=]' of member 'Permission' in type 'News.Models.Author' is not compatible with 'MySql.tinyint[Nullable=False,DefaultValue=]' of member 'Permission' in type 'CodeFirstDatabaseSchema.Author'.
The name of colum in db is Permission with tinyint datatype. and the below is my class.
public class Author
{
...
public byte Permission { get; set; }
...
}