@@ -70,7 +70,7 @@ public partial class PGContext : DbContext
|
||||
|
||||
//configurationBuilder.Conventions.Add(_ => new NoForeignKeyConvention());
|
||||
//针对字符串使用默认的长度配置
|
||||
configurationBuilder.Conventions.Add(_ => new MaxStringLengthConvention());
|
||||
configurationBuilder.Conventions.Add(_ => new MaxStringLengthConvention(200));
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
|
||||
Reference in New Issue
Block a user