From d531db9e0d24498197de38e6c48317565af78261 Mon Sep 17 00:00:00 2001 From: "Prasanna V. Loganathar" Date: Sat, 28 Mar 2015 19:02:27 +0530 Subject: [PATCH] Correct improper fix for enum null values --- src/SQLite.Net/TableMapping.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SQLite.Net/TableMapping.cs b/src/SQLite.Net/TableMapping.cs index 6f0d3187..97efdd88 100644 --- a/src/SQLite.Net/TableMapping.cs +++ b/src/SQLite.Net/TableMapping.cs @@ -245,8 +245,10 @@ private void SetEnumValue(object obj, Type type, object value) { var result = value; if (result != null) + { result = Enum.ToObject(type, result); - _prop.SetValue(obj, result, null); + _prop.SetValue(obj, result, null); + } } [PublicAPI]