C# C++ CMake Makefile PowerShell XSLT Other
Failed to load latest commit information.
.github Update ISSUE_TEMPLATE.md (#1478) Jul 7, 2017
.nuget Remove space from TeamCityEventListener package (#1607) Oct 26, 2017
DataBinding make stylecop consistent (#1736) May 31, 2018
Docs Release 2.1.0 (#1633) Nov 13, 2017
Manual Tests Upgrade to new Fody (#1744) Jun 21, 2018
NuGet Upgrade to new Fody (#1744) Jun 21, 2018
Platform.PCL Allow configuring the base path for Realm files (#1757) Jul 30, 2018
Realm Allow configuring the base path for Realm files (#1757) Jul 30, 2018
Tests Throw NotSupported exception when comparing to an unmanaged object (#… Jul 30, 2018
Tools Rename some README files Dec 7, 2015
Weaver Upgrade to new Fody (#1744) Jun 21, 2018
dependencies/nunit.xamarin.3.6.1 Add UWP test runner (#1358) May 3, 2017
examples Fix some typos in the readmes (#1670) Jan 3, 2018
wrappers Update realm dependencies (#1754) Jul 3, 2018
.gitattributes Specify union merge for Changelog.md (#1243) Feb 21, 2017
.gitignore Add UWP test runner (#1358) May 3, 2017
.gitmodules Object store as submodule (#793) Aug 24, 2016
CHANGELOG.md Throw NotSupported exception when comparing to an unmanaged object (#… Jul 30, 2018
CONTRIBUTING.md Minor README tweaks. Dec 1, 2015
Jenkinsfile Update realm dependencies (#1754) Jul 3, 2018
README.md Fix some typos in the readmes (#1670) Jan 3, 2018
Realm.sln Sync for Windows (#1577) Oct 16, 2017
Realm.sln.DotSettings Move files from realm/ to / Nov 9, 2015
RealmAssemblyInfo.cs Bump versions (#1730) May 7, 2018
SUPPORT.md Create SUPPORT.md (#1493) Jul 25, 2017
Settings.StyleCop Add JWT provider (#1655) Dec 13, 2017
license.txt update license to match changes in realm-cocoa (#1428) Jun 5, 2017
logo.png update Realm logo in README (#617) Jun 10, 2016



Realm is a mobile database that runs directly on phones, tablets or wearables.

This repository holds the source code for the .NET / C# versions of Realm. Currently, we support all major mobile and desktop operating systems, such as iOS, Android, UWP, macOS, Linux, and Windows. For a full list of supported platforms and their versions, check out the Prerequisites section in the documentation.


  • Mobile-first: Realm is the first database built from the ground up to run directly inside phones, tablets, and wearables.
  • Simple: Data is directly exposed as objects and queryable by code, removing the need for ORM's riddled with performance & maintenance issues. Plus, we've worked hard to keep our API down to just 2 common classes (RealmObject and Realm): most of our users pick it up intuitively, getting simple apps up & running in minutes.
  • Modern: Realm supports relationships, generics, vectorization and modern C# idioms.
  • Fast: Realm is faster than even raw SQLite on common operations while maintaining an extremely rich feature set.

Getting Started

Please see the detailed instructions in our User Guide to add Realm to your solution.


The documentation can be found at realm.io/docs/dotnet/latest. The API reference is located at realm.io/docs/dotnet/latest/api.

Getting Help

  • Need help with your code?: Look for previous questions on the #realm tag — or ask a new question. We actively monitor & answer questions on SO!
  • Have a bug to report? Open an issue. If possible, include the version of Realm, a full log, the Realm file, and a project that shows the issue.
  • Have a feature request? Open an issue. Tell us what the feature should do, and why you want the feature.
  • Sign up for our Community Newsletter to get regular tips, learn about other use-cases and get alerted to blog posts and tutorials about Realm.

Nightly builds

If you want to test recent bugfixes or features that have not been packaged in an official release yet, you can use the preview releases published after every commit to the realm-nightly MyGet feed. Refer to this guide for instructions on adding custom sources to the NuGet Package Manager. The source URL you need to specify is https://www.myget.org/F/realm-nightly/api/v3/index.json.

Building Realm

We highly recommend using our pre-built binaries via NuGet but you can also build from source.


  • Visual Studio Community or above.
  • Building Xamarin iOS apps also requires Xcode 8.1.

We support the current Xamarin Stable update channel, at the time of release this corresponded to:

  • Xamarin iOS version
  • Xamarin Android version
  • Xamarin Studio version 6.1.4

Note for Debugging that the following steps mention building for Release. If you are debugging, just substitute Debug and you probably also want to choose Debug | iPhoneSimulator as a platform.

  1. Download and build the native libraries using the instructions in wrappers/README.md
  2. Open the Realm.sln in Visual Studio
  3. Build RealmWeaver.Fody and Realm.BuildTasks
  4. Build Realm and Realm.Sync
  5. Build and run the tests for the relevant platforms.

If you are actively testing code against the Realm source, see also the unit test projects and other tests under the Tests folder.


See CONTRIBUTING.md for more details!

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to info@realm.io.


Realm .NET is published under the Apache 2.0 license. Realm Core is also published under the Apache 2.0 license and is available here.

This product is not being made available to any person located in Cuba, Iran, North Korea, Sudan, Syria or the Crimea region, or to any other person that is not eligible to receive the product under U.S. law.


If you use Realm and are happy with it, all we ask is that you please consider sending out a tweet mentioning @realm to share your thoughts!

And if you don't like it, please let us know what you would like improved, so we can fix it!