예제 #1
0
 public static void AddIngredient(Realm _realm, Smoothie item, string value)
 {
     using (var trans = _realm.BeginWrite())
     {
         item.Ingredients.Add(new Ingredient()
         {
             Name = value
         });
         trans.Commit();
     }
 }