The question is really simple, about how to workaround this error:
Fody/RealmWeaver: class 'X' field 'Y' is a 'System.Nullable`1' which is not yet supported.
This is for a DateTime?
property. Nullable primitive types are indeed supported.
I know the Java version supports null
values. This is about Realm .NET. I was wondering if there's any other way besides doing the old DateTime SomeNullableProperty
& bool HasSomeNullableProperty
thing.
We implement the standard optional properaties such as int?
and bool?
for primitives. This is briefly mentioned in our docs under optional properties
Reference types such as String
can be null.
We also support the optional value type DateTimeOffset?
.
See the full list in the AccessTests.cs
Your best option is to add a boolean field for every field you want to allow nullability.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With