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 }