title: Realm for Desktop apps
body: <p>Is there a way to use Realm from <a href="https://realm.io/" rel="nofollow">realm.io</a> for a desktop (WinForms/WPF) appliaction?</p>
  
  <p>I have tried the following code:</p>
  
  <pre><code>public partial class Form1 : Form
  {
      private Realm realm;
      public Form1()
      {
          InitializeComponent();
  
          this.realm = Realm.GetInstance();
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          realm.Write(() =&gt;
          {
              var jim = realm.CreateObject&lt;Person&gt;();
              var myDog = realm.CreateObject&lt;Dog&gt;();
  
              myDog.Name = "Fido";
              myDog.Owner = jim;
          });
      }
  }
  
  public class Dog : RealmObject
  {
      public string Name { get; set; }
      public int Age { get; set; }
      public Person Owner { get; set; }
  }
  
  public class Person : RealmObject
  {
      public string Name { get; set; }
      public IList&lt;Dog&gt; Dogs { get; }
  }
  </code></pre>
  
  <p>but when executing it, VS shows me a <code>PlatformNotSupportedException</code></p>