예제 #1
0
        public void AddPage(RealmPage page)
        {
            transaction = realm.BeginWrite();
            var entry = realm.Add(page);

            transaction.Commit();
        }
예제 #2
0
 public bool CheckPageExists(RealmPage page)
 {
     try
     {
         var result = realm.All <RealmPage>().Where(x => x.Id == page.Id).First();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }