在 AbpAuditLog 中更改列参数的正确方法是什么?

What is the proper way to alter column parameters in AbpAuditLog?

如何更改 abpAuditLogs table 中的列参数? 我想将其更改为 nvarchar(max)

您可以像这样增加 AuditLog 字段的大小;

在 DbContext 中 class:

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    AuditLog.MaxParametersLength = 4000;
    //other fields...

    base.OnModelCreating(modelBuilder);

    //...
}

You can customize these fields;

MaxServiceNameLength, MaxMethodNameLength, MaxParametersLength, MaxClientIpAddressLength, MaxClientNameLength, MaxBrowserInfoLength, MaxExceptionLength, MaxCustomDataLength