mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +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())
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user