mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-04 23:39:33 +08:00
fix: pgSql int2与bool类型转换问题
This commit is contained in:
parent
a57b3355e7
commit
bb87b4fed7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user