From 724b8278d2706e6a234b8834d57c6d6119d25dc9 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 26 Mar 2023 12:50:21 +0800 Subject: [PATCH] Update unit test --- Src/Asp.Net/PgSqlTest/UnitTest/Updateable.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/PgSqlTest/UnitTest/Updateable.cs b/Src/Asp.Net/PgSqlTest/UnitTest/Updateable.cs index 75978677e..c5ba4effc 100644 --- a/Src/Asp.Net/PgSqlTest/UnitTest/Updateable.cs +++ b/Src/Asp.Net/PgSqlTest/UnitTest/Updateable.cs @@ -81,6 +81,8 @@ namespace OrmTest var res1 = Db.Updateable(list).WhereColumns(it => it.pk).ExecuteCommand(); Db.CodeFirst.InitTables(); + Db.DbMaintenance.TruncateTable(); + Db.Insertable(new UnitUUIDARRAY()).ExecuteCommand(); var pars = Db.Updateable(new UnitUUIDARRAY() { id = 0 }).ExecuteCommand(); } } @@ -88,7 +90,7 @@ namespace OrmTest [SugarTable("UnitUUIDARRAY1")] public class UnitUUIDARRAY { - [SugarColumn(ColumnDataType = "uuid []",IsArray =true)] + [SugarColumn(ColumnDataType = "uuid []",IsArray =true,IsNullable =true)] public Guid[] ids { get; set; } [SugarColumn(IsPrimaryKey = true)] public int id { get; set; }