Realm dot-net Upgraded (through Nuget) from 10.0.0-beta.2 to 10.0.0-beta.5
Clean and rebuild.
My RealmObject ‘Accommodation’ has a date field:
[MapTo(“date”)]
public DateTimeOffset Date { get; set; }
In beta.2 the following query always worked:
var result2 = _Realm.All(Accommodation) ();
(The editor does not accept greaterThan or LessThan chars)
In beta.5 it fails.
Every ‘Accommodation’ object returned has ‘Date’ zeroed: {01/01/0001 00:02:41 +00:00}
Switching back to beta.2 everything works again.
Realm Studio view of the realm file shows dates in Accommodation classes are correct,
(which they have to be for Beta.2 to work again).
A different class returns dates correctly (named ‘ArrivalDate’)
Could it be internal confusion due to the date simply being named ‘Date’ in the latest beta?
[MapTo(“date”)]
public DateTimeOffset Date { get; set; }
Any ideas?