fix: pgSql int2与bool类型转换问题

This commit is contained in:
wintel 2025-03-29 22:48:10 +08:00
parent a57b3355e7
commit bb87b4fed7

View File

@ -92,7 +92,7 @@ namespace OpenAuth.Repository
{ {
foreach (var property in entityType.GetProperties()) foreach (var property in entityType.GetProperties())
{ {
if (property.ClrType == typeof(bool)) if (property.ClrType == typeof(bool) || property.ClrType == typeof(bool?))
{ {
property.SetValueConverter(boolToSmallIntConverter); property.SetValueConverter(boolToSmallIntConverter);
} }