I am creating a field :
public Byte[] Image { get; set; }
This will create a fields called Image with data type varbinary and length is 4000.
When I save a record, it will fail to save because the image is hugh to save in varbinary(4000).
How do I make it to image datattype or bigger binary length?
I am using sqlserver ce 4.
You must change the mapping for your property to use
imagetype in the database. You can do that either with data annotations:or with fluent API: