What is the difference in behavior of [MaxLength] and [StringLength] attributes?
[MaxLength]
[StringLength]
As far as I can tell (with the exception that [MaxLe
[MaxLe
I have resolved it by adding below line in my context:
modelBuilder.Entity().Property(e => e.YourColumn).HasMaxLength(4000);
Somehow, [MaxLength] didn't work for me.