I\'m using EF 6.1.0 and was creating a WCF Service.
First I created a Class Library containing my entities, Mappers and Context for initializing EF. I\'ve also creat
I was also getting same error while adding migration or updating database.
The reason was I was using wrong column type
[Column("ImageType", TypeName = "varchar(20)")]
public string ImageType
{
get;
set;
}
But when I removed 20 from varchar it started working for me
[Column("ImageType", TypeName = "varchar")]
public string ImageType
{
get;
set;
}