Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Set setting value to MaxLength #1886


User avatar
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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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);