Skip to content

Commit

Permalink
Merge pull request oysteinkrog#156 from prasannavl/patch-1
Browse files Browse the repository at this point in the history
Correct improper fix for enum null values
  • Loading branch information
oysteinkrog committed Mar 28, 2015
2 parents 60de5df + d531db9 commit ab66f43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SQLite.Net/TableMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ab66f43

Please sign in to comment.