0
rickwheeler created
Hi,
In Abp.Configuration.Setting.Value the string length is set to 2000.
I need the field to be NVARCHAR(MAX)
How would you suggest to accomplish this in an ABPZero template?
Regards, Sean
1 Answer(s)
-
0
Hi,
You can try to add Column attribute like this.
[Column(TypeName = "nvarchar(max)")]
or you can change the MaxLenght in OnModelCreating of your dbcontext.
modelBuilder.Entity<Entity>().Property(u => u.NameOfProperty)HasMaxLength(4000);