How to store custom types with Realm in .Net

86 Views Asked by At

I have the following class:

public class TestData: RealmObject
{
  [Key]
  public Guid DataId { get; set; }
  [Required]
  public string Name { get; set; }
}

When I try to compile the project, I get the following error:

Fody/RealmWeaver: DataId is a 'System.Guid' which is not yet supported.

As I have already faced similar problems, I know that a converter class could do some Guid-String conversion (and as I can see, it is about to be implemented in realm-java).

How can I create such a converter class in .Net? Any idea where to look?

0

There are 0 best solutions below