I\'m trying to store/save an image in an SQL Compact Edition (CE) database.
I declare the field in my Student model as:
[Column(TypeName = \"image\")
I know this is too late, but it could benefit other programmers.
You could add to the context class inside the OnModelCreating(DbModelBuilder modelBuilder) method
modelBuilder.Entity().Property(p => p.Photo).IsMaxLength();