From 28a64b2322b152b17ac9f095b325cd42d7ae8f5e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 13 Mar 2023 01:14:45 +0800 Subject: [PATCH] Update unit test --- Src/Asp.Net/PgSqlTest/UnitTest/UinitCustomConvert.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Asp.Net/PgSqlTest/UnitTest/UinitCustomConvert.cs b/Src/Asp.Net/PgSqlTest/UnitTest/UinitCustomConvert.cs index 394c9da6d..16f800d68 100644 --- a/Src/Asp.Net/PgSqlTest/UnitTest/UinitCustomConvert.cs +++ b/Src/Asp.Net/PgSqlTest/UnitTest/UinitCustomConvert.cs @@ -20,11 +20,11 @@ namespace OrmTest db.DbMaintenance.CreateDatabase(); db.CodeFirst.InitTables(); db.DbMaintenance.TruncateTable(); - db.Insertable(new Uinitadfa22122() + var id=db.Insertable(new Uinitadfa22122() { DcValue = new Dictionary() { { "1", 1 } } } - ).ExecuteCommand(); + ).ExecuteReturnIdentity(); var data = db.Queryable().ToList(); if (data.First().EnumValue != null) { @@ -36,7 +36,7 @@ namespace OrmTest } db.Updateable(new Uinitadfa22122() { - Id = 1, + Id = id, DcValue = new Dictionary() { { "1", 2 } }, EnumValue = SqlSugar.DbType.MySql }