diff --git a/src/Nuget.Test/Droid/Linker.xml b/src/Nuget.Test/Droid/Linker.xml
new file mode 100644
index 0000000..3d4c292
--- /dev/null
+++ b/src/Nuget.Test/Droid/Linker.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/RealmJson.Extensions.nuspec b/src/RealmJson.Extensions.nuspec
index 690444a..c7bd165 100644
--- a/src/RealmJson.Extensions.nuspec
+++ b/src/RealmJson.Extensions.nuspec
@@ -14,7 +14,7 @@
https://github.com/sushihangover/Realm.Json.Extensions
Realm Xamarin Json Netwonsoft SushiHangover
-
+
diff --git a/src/RealmJson.Extensions/Extension.cs b/src/RealmJson.Extensions/Extension.cs
index 77ff615..7968d3b 100644
--- a/src/RealmJson.Extensions/Extension.cs
+++ b/src/RealmJson.Extensions/Extension.cs
@@ -29,6 +29,7 @@ public static class RealmDoesJson
///
/// Realm Instance
/// Json string
+ /// bool.
/// RealmOject-based Class..
public static T CreateObjectFromJson(this Realm realm, string jsonString, bool inTransaction = false) where T : RealmObject
{
@@ -134,7 +135,7 @@ public static void CreateAllFromJson(this Realm realm, string jsonString, boo
///
/// Realm Instance.
/// Stream.
- /// bool.
+ /// bool.
/// RealmObject-based Class.
public static void CreateAllFromJsonViaAutoMapper(this Realm realm, Stream stream, bool inTransaction = false) where T : RealmObject
{
@@ -192,7 +193,7 @@ static void CreateUpdateRecordsViaAutoMapper(Realm realm, PropertyInfo pkProp
{
realmObject = (T)Activator.CreateInstance(typeof(T));
newMapper.Map(jsonObject, realmObject);
- realm.Manage(realmObject, true);
+ realm.Add(realmObject, true);
}
else
{
@@ -228,13 +229,13 @@ static T CreateObject(Realm realm, T realmObject, bool updateRecord, bool inT
{
if (inTransaction)
{
- realm.Manage(realmObject, updateRecord);
+ realm.Add(realmObject, updateRecord);
}
else
{
realm.Write(() =>
{
- realm.Manage(realmObject, updateRecord);
+ realm.Add(realmObject, updateRecord);
});
}
return realmObject;
@@ -272,9 +273,9 @@ static RealmObject FindByPKDynamic(Realm realm, Type type, object primaryKeyValu
{
castPKValue = Convert.ToInt64(primaryKeyValue);
}
- return realm.ObjectForPrimaryKey(type.Name, (long)castPKValue);
+ return realm.Find(type.Name, (long)castPKValue);
}
- return realm.ObjectForPrimaryKey(type.Name, (string)primaryKeyValue);
+ return realm.Find(type.Name, (string)primaryKeyValue);
}
//void createOrUpdateAllFromJson(Class clazz, InputStream in)
diff --git a/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj b/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj
index 60a5443..73f0471 100644
--- a/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj
+++ b/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj
@@ -29,6 +29,18 @@
4
bin\Release\RealmJson.Extensions.xml
+
+ false
+ bin\NugetTest
+ 4
+ SushiHangover.RealmJson
+
+
+ false
+ bin\NugetRelease
+ 4
+ SushiHangover.RealmJson
+
@@ -49,7 +61,7 @@
..\packages\Remotion.Linq.2.1.1\lib\portable-net45+win+wpa81+wp80\Remotion.Linq.dll
- ..\packages\Realm.0.80.0\lib\portable-net45+sl5+wp8+wpa81+win8+monoandroid+Xamarin.iOS10+monotouch+Xamarin.Mac\Realm.dll
+ ..\packages\Realm.0.81.0\lib\portable-net45+sl5+wp8+wpa81+win8+monoandroid+Xamarin.iOS10+monotouch+Xamarin.Mac\Realm.dll
@@ -62,5 +74,5 @@
-
+
\ No newline at end of file
diff --git a/src/RealmJson.Extensions/packages.config b/src/RealmJson.Extensions/packages.config
index ffd4bb3..da58057 100644
--- a/src/RealmJson.Extensions/packages.config
+++ b/src/RealmJson.Extensions/packages.config
@@ -4,7 +4,7 @@
-
+
diff --git a/src/RealmJson.Shared.Tests/Tests.Shared.cs b/src/RealmJson.Shared.Tests/Tests.Shared.cs
index c45408d..6901c40 100644
--- a/src/RealmJson.Shared.Tests/Tests.Shared.cs
+++ b/src/RealmJson.Shared.Tests/Tests.Shared.cs
@@ -112,7 +112,7 @@ public void CreateObjectFromJson_InTransaction_RollBack_Stream()
theRealm.CreateObjectFromJson(stream, inTransaction: true);
transaction.Rollback();
}
- Assert.IsTrue(theRealm.ObjectForPrimaryKey("AL") == null);
+ Assert.IsTrue(theRealm.Find("AL") == null);
}
}