Here is a simple example on how to use MongoDB Realm with C#.

What is MongoDB Realm?

MongoDB Realm will combine Realm, the popular mobile database and data synchronization technology, and MongoDB Stitch, the serverless platform for MongoDB, into a unified solution that makes it easy for you to build powerful and engaging experiences on more devices. See realm.io

How to use MongoDB Realm?

  1. Download the Realm NuGet Package
  2. Configure your Realm DB with RealmConfiguration
  3. Get an instance of Realm with Realm.GetInstance()
  4. Insert your objects into the DB with realm.Add() and realm.Write()
  5. Retreive your object with realm.All() or realm.Find()

How to use MongoDB Realm with C#?

Follow this simple tutorial to understand the basics of Realm with C#:

Happy coding! 🙂