From 81a0da73615777bcf0890573f7b680ae8afc81e5 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 1 Oct 2022 03:07:32 +0800 Subject: [PATCH] Update unit test --- Src/Asp.NetCore2/MySqlTest/UnitTest/UBulkCopy.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Asp.NetCore2/MySqlTest/UnitTest/UBulkCopy.cs b/Src/Asp.NetCore2/MySqlTest/UnitTest/UBulkCopy.cs index caaefa8e2..250c1c3db 100644 --- a/Src/Asp.NetCore2/MySqlTest/UnitTest/UBulkCopy.cs +++ b/Src/Asp.NetCore2/MySqlTest/UnitTest/UBulkCopy.cs @@ -169,7 +169,7 @@ namespace OrmTest id = 1 }}); var data3= Db.Queryable().First(); - if (data3.false1 != false || data2.true1 != true || data2.null1 != null) + if (data3.false1 != null || data2.true1 != true || data2.null1 != null) { throw new Exception("uint error"); } @@ -179,11 +179,11 @@ namespace OrmTest { [SqlSugar.SugarColumn(IsPrimaryKey = true)] public int id { get; set; } - [SqlSugar.SugarColumn(IsNullable = true)] + [SqlSugar.SugarColumn(IsNullable = true, ColumnDataType="bit")] public bool? false1 { get; set; } - [SqlSugar.SugarColumn(IsNullable = true)] + [SqlSugar.SugarColumn(IsNullable = true, ColumnDataType = "bit")] public bool? true1 { get; set; } - [SqlSugar.SugarColumn(IsNullable = true)] + [SqlSugar.SugarColumn(IsNullable = true, ColumnDataType = "bit")] public bool? null1 { get; set; } } public class unitBools