Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit f3941d4

Browse files
committed
fixed bit column serialization to bool fields
1 parent 1c5857a commit f3941d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite.Sqlite/SqliteOrmLiteDialectProviderBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public override object ConvertDbValue(object value, Type type)
9696
{
9797
if (value == null || value is DBNull) return null;
9898

99-
if (type == typeof(bool))
99+
if (type == typeof(bool) && !(value is bool))
100100
{
101101
var intVal = int.Parse(value.ToString());
102102
return intVal != 0;

0 commit comments

Comments
 (0)