MongoDB Realm in .NET Framework 4.8.1 App

166 Views Asked by At

I am working in a WPF based app, and I would like to use Realm as a DB engine for a specific part of the project. I tried installing the packages via Nuget, but for some reason it appears to fail. I believe the problem seems to be related to using .NET Framework instead of newer .NET. Am I right? Is Realm incompatible with .NET Framework 4.8.1?

Update:

Here are the errors after i create a class using IRealmObject interface:

enter image description here

Using latest Realm installed via Nuget and .NET FW 4.8.1

Thanks

1

There are 1 best solutions below

1
ppusiol On

So,

Basically I have an Interface ICalibration, where that interface implements IRealmObject, and my error was in the implementation of such interface. You have to implement RealmObject and latter the ICalibration:

interface ICalibration : IRealmObject { ... }

partial class DualLinearRegressionCalibration : RealmObject, ICalibration {...}