You can use the
.HasColumnType() method to make explicit the type of data you want the Fluent API to map.
However, the type
image is already obsolete:
From: ntext, text and image (Transact-SQL)
The ntext, text, and image data types will be removed in a future version of Microsoft SQL Server. Avoid using it in new development jobs and think about modifying the applications that currently use them. Use nvarchar (max), varchar (max) and varbinary (max) instead.
Instead use the type
Property(c => c.Imagen).HasColumnType("varbinary(max)");
Although this is not necessary anyway because the SQL Server data type used by default to map the
byte is already
If in any case for compatibility or that you want to use
image simply use that type:
Property(c => c.Imagen).HasColumnType("image");