Realm is a mobile database: a replacement for SQLite & ORMs
C# C++ Makefile JavaScript CSS HTML XSLT
Latest commit d323218 Jan 20, 2017 @fealebenpae fealebenpae committed on GitHub Cleanup NuGet targets files (#1170)
* Use forward slashes for paths in MSBuild files

* Streamline targets files when including the native wrappers
Failed to load latest commit information.
.github Create May 17, 2016
.nuget Prepare weaver tests for CI (#626) Jun 14, 2016
Docs Update the contribution path for "Improve this doc" (#1114) Jan 7, 2017
Doxygen Update the changelog and fix a few api docs issues (#996) Dec 14, 2016
NuGet Cleanup NuGet targets files (#1170) Jan 20, 2017
Platform.PCL Return the passed in object from Realm.Add (#1162) Jan 20, 2017
Platform.Win32 Add dummy win32.sync assembly (#1103) Jan 5, 2017
Platform.XamarinAndroid Refactor tests (#1064) Dec 23, 2016
Platform.XamarinIOS Remove references to CreateObject from our tests (#1088) Jan 6, 2017
Shared Return the passed in object from Realm.Add (#1162) Jan 20, 2017
Tests Prepare for 0.81.0 (#1013) Dec 15, 2016
Tools Rename some README files Dec 7, 2015
Weaver Produce a weaver error when invalid combination of [Backlink]/Propert… Jan 20, 2017
component Release/0.78.0 (#828) Sep 12, 2016
examples Ad/sample/draw moved repos (#1005) Dec 16, 2016
internals Ad/weaver write persist attribute#822 (#843) Sep 20, 2016
wrappers Update to latest Object Store and Sync (#1157) Jan 19, 2017
.gitattributes Manual migrations API (#812) Sep 1, 2016
.gitignore Windows (#1061) Dec 23, 2016
.gitmodules Object store as submodule (#793) Aug 24, 2016 Just bumped version number to make it clear what am using when using … Dec 16, 2016 Minor README tweaks. Dec 1, 2015
Jenkinsfile Redirect the temp folder when running Windows tests (#1145) Jan 12, 2017 Build doc updates for manual process including how to download (#1108) Jan 6, 2017
Realm.sln Add dummy win32.sync assembly (#1103) Jan 5, 2017
Realm.sln.DotSettings Move files from realm/ to / Nov 9, 2015
RealmAssemblyInfo.cs Just bumped version number to make it clear what am using when using … Dec 16, 2016
Settings.StyleCop Disabling SA1513 due to popular demand. (#1165) Jan 20, 2017
license.txt Update license.txt Jul 30, 2016
logo.png update Realm logo in README (#617) Jun 10, 2016


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

This repository holds the source code for the .NET / C# versions of Realm. Currently, we only support Xamarin, specifically Xamarin.iOS, and Xamarin.Android. We do plan to support Xamarin.Mac, UWP, and Unity in the future.


  • 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
The API reference is located at

Getting Help

  • Need help with your code?: Look for previous questions on the #realm tag — or ask a new question. We activtely 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 of blogposts and tutorials about Realm.

Building Realm

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


  • If you target Android/iOS via Xamarin: Xamarin Community or above.
  • Windows platforms: Visual Studio 2015.
  • Building Xamarin iOS apps also requires Xcode 8.1.
  • If you are using Xamarin Studio, the StyleCop Support add-in is required.

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.2

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/
  2. Open the Realm.sln in Xamarin Studio on macOS
    1. Choose the Solution Realm in the Solution navigator and use the context menu to Clean Realm
    2. Use the context menu on the solution again and choose Restore NuGet Packages
    3. Choose the platform popup Release | Default
    4. select Platform.PCL/Realm.PCL project and Build
    5. select Platform.PCL/Realm.Sync.PCL project and Build
    6. select Weaver/RealmWeaver.Fody project and build
    7. select platform popup Release | ARM
    8. select Platforms.XamarinAndroid/Realm.XamarinAndroid project and Build
    9. select Platforms.XamarinAndroid/Realm.Sync.XamarinAndroid project and Build
    10. ensure you have an iOS device attached
    11. select platform popup Release | iPhone
    12. select Realm.XamarinIOS project and Build
    13. select Realm.Sync.XamarinIOS project and Build
  3. If you want to build the NuGet packages, go on from this point and follow the steps in internals/

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


See 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


Realm is published under the Apache 2.0 license.
The underlying core is available under the Realm Core Binary License while we work to open-source it under the Apache 2.0 license.

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, or email to let us know about it!

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