From bb87b4fed7510666bbf82fa1b0791704bb19ff2b Mon Sep 17 00:00:00 2001 From: wintel Date: Sat, 29 Mar 2025 22:48:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pgSql=20int2=E4=B8=8Ebool=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BD=AC=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.Repository/OpenAuthDBContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenAuth.Repository/OpenAuthDBContext.cs b/OpenAuth.Repository/OpenAuthDBContext.cs index 727a811c..e096a369 100644 --- a/OpenAuth.Repository/OpenAuthDBContext.cs +++ b/OpenAuth.Repository/OpenAuthDBContext.cs @@ -92,7 +92,7 @@ namespace OpenAuth.Repository { foreach (var property in entityType.GetProperties()) { - if (property.ClrType == typeof(bool)) + if (property.ClrType == typeof(bool) || property.ClrType == typeof(bool?)) { property.SetValueConverter(boolToSmallIntConverter); }