Skip to content

Commit

Permalink
Corrected serializing an enum value. Closes #84.
Browse files Browse the repository at this point in the history
  • Loading branch information
hisystems committed Jun 25, 2013
1 parent 3a22b6a commit ce2c057
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SQL/Serializers/Serializer.cs
Expand Up @@ -1241,6 +1241,8 @@ public virtual string SerializeValue(object value)
return SerializeGuid((Guid)value);
else if (value is SQLExpression)
return ((SQLExpression)value).SQL(this);
else if (value is Enum)
return Convert.ToInt64(value).ToString();
else
return value.ToString();
}
Expand Down

0 comments on commit ce2c057

Please sign in to comment.