I am trying to serialize and deserialize a System.Drawing.Color property in LiteDb. I've read the article below, but have no idea how to implement this in code:
Here's an example of the poco class:
Public Class mPage
<Id(1, 1), Category("IDs"), [ReadOnly](True)>
Public Property ID As ObjectId = ObjectId.NewObjectId
<Id(1, 10), Category("General"), DisplayName("Design Name"), Description("Name used in the designer (short - just for identification purposes).")>
<TypeConverter(GetType(RemoveSpaces))>
Public Property Name As String = ""
<Id(15, 10), Category("General"), DisplayName("Background Color"), Description("The background color of the page.")>
Public Property BackgroundColor As Color = Color.LightGray
End Class
LiteDb does not deal with Color natively(see here). How do I achieve this?