From 83ad51214375e845c3476d6f4d298117fac25e15 Mon Sep 17 00:00:00 2001 From: SushiHangover Date: Sat, 18 Feb 2017 22:06:39 -0800 Subject: [PATCH 1/3] Update nuget test to 1.1.7 --- src/Nuget.Test/Droid/Nuget.Test.Droid.csproj | 2 +- src/Nuget.Test/Droid/packages.config | 2 +- src/Nuget.Test/Nuget.Test/Nuget.Test.csproj | 6 +++--- src/Nuget.Test/Nuget.Test/packages.config | 2 +- src/Nuget.Test/iOS/Nuget.Test.iOS.csproj | 11 +++++++---- src/Nuget.Test/iOS/packages.config | 2 +- 6 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/Nuget.Test/Droid/Nuget.Test.Droid.csproj b/src/Nuget.Test/Droid/Nuget.Test.Droid.csproj index 19526df..eec1f2c 100644 --- a/src/Nuget.Test/Droid/Nuget.Test.Droid.csproj +++ b/src/Nuget.Test/Droid/Nuget.Test.Droid.csproj @@ -126,7 +126,7 @@ ..\..\packages\Realm.Database.1.0.3\lib\MonoAndroid44\Realm.dll - ..\..\packages\RealmJson.Extensions.1.1.6\lib\RealmJson.Extensions.dll + ..\..\packages\RealmJson.Extensions.1.1.7\lib\RealmJson.Extensions.dll diff --git a/src/Nuget.Test/Droid/packages.config b/src/Nuget.Test/Droid/packages.config index afed3b8..f413248 100644 --- a/src/Nuget.Test/Droid/packages.config +++ b/src/Nuget.Test/Droid/packages.config @@ -9,7 +9,7 @@ - + diff --git a/src/Nuget.Test/Nuget.Test/Nuget.Test.csproj b/src/Nuget.Test/Nuget.Test/Nuget.Test.csproj index f139b29..d18c3fa 100644 --- a/src/Nuget.Test/Nuget.Test/Nuget.Test.csproj +++ b/src/Nuget.Test/Nuget.Test/Nuget.Test.csproj @@ -45,9 +45,6 @@ ..\..\packages\Realm.Database.1.0.3\lib\portable-net45+sl5+wp8+wpa81+win8+monoandroid+Xamarin.iOS10+monotouch+Xamarin.Mac\Realm.dll - - ..\..\packages\RealmJson.Extensions.1.1.6\lib\RealmJson.Extensions.dll - ..\..\packages\Xamarin.Forms.2.3.4.192-pre2\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll @@ -60,6 +57,9 @@ ..\..\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll + + ..\..\packages\RealmJson.Extensions.1.1.7\lib\RealmJson.Extensions.dll + diff --git a/src/Nuget.Test/Nuget.Test/packages.config b/src/Nuget.Test/Nuget.Test/packages.config index 07b5028..b4248eb 100644 --- a/src/Nuget.Test/Nuget.Test/packages.config +++ b/src/Nuget.Test/Nuget.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/Nuget.Test/iOS/Nuget.Test.iOS.csproj b/src/Nuget.Test/iOS/Nuget.Test.iOS.csproj index 01c6a1c..65f109d 100644 --- a/src/Nuget.Test/iOS/Nuget.Test.iOS.csproj +++ b/src/Nuget.Test/iOS/Nuget.Test.iOS.csproj @@ -119,9 +119,6 @@ ..\..\packages\AutoMapper.5.1.1\lib\netstandard1.3\AutoMapper.dll - - ..\..\packages\RealmJson.Extensions.1.1.6\lib\RealmJson.Extensions.dll - ..\..\packages\Xamarin.Forms.2.3.4.192-pre2\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll @@ -137,6 +134,12 @@ ..\..\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll + + ..\..\packages\Realm.Database.1.0.3\lib\Xamarin.iOS10\Realm.dll + + + ..\..\packages\RealmJson.Extensions.1.1.7\lib\RealmJson.Extensions.dll + @@ -146,6 +149,6 @@ - + \ No newline at end of file diff --git a/src/Nuget.Test/iOS/packages.config b/src/Nuget.Test/iOS/packages.config index 1a98ccb..3541a7a 100644 --- a/src/Nuget.Test/iOS/packages.config +++ b/src/Nuget.Test/iOS/packages.config @@ -9,7 +9,7 @@ - + From d30b0732e9a5f11b291a27936181b30a7a8f49ae Mon Sep 17 00:00:00 2001 From: SushiHangover Date: Sat, 18 Feb 2017 22:52:36 -0800 Subject: [PATCH 2/3] Update README w/ new NonManagedCopy extensions Fix Doxygen/doxygen.config to incldue static classes/methods to properly generate docs --- Doxygen/doxygen.config | 10 +- README.md | 4 + docs/_extension_8cs.html | 97 +++ docs/_r_e_a_d_m_e_8md.html | 78 +++ docs/annotated.html | 85 +++ ...ealm_json_1_1_realm_does_json-members.html | 94 +++ ...er_1_1_realm_json_1_1_realm_does_json.html | 643 ++++++++++++++++++ docs/classes.html | 87 +++ docs/extra_8css.html | 82 +++ docs/files.html | 87 +++ docs/functions.html | 97 +++ docs/functions_func.html | 94 +++ docs/functions_vars.html | 79 +++ docs/index.hhc | 27 +- docs/index.hhk | 17 + docs/index.hhp | 8 +- docs/index.html | 12 +- docs/menudata.js | 9 +- ...mespace_sushi_hangover_1_1_realm_json.html | 4 +- src/RealmJson.Extensions/Extension.cs | 20 +- 20 files changed, 1616 insertions(+), 18 deletions(-) create mode 100644 docs/_extension_8cs.html create mode 100644 docs/_r_e_a_d_m_e_8md.html create mode 100644 docs/annotated.html create mode 100644 docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json-members.html create mode 100644 docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json.html create mode 100644 docs/classes.html create mode 100644 docs/extra_8css.html create mode 100644 docs/files.html create mode 100644 docs/functions.html create mode 100644 docs/functions_func.html create mode 100644 docs/functions_vars.html diff --git a/Doxygen/doxygen.config b/Doxygen/doxygen.config index 27f8936..4c81850 100644 --- a/Doxygen/doxygen.config +++ b/Doxygen/doxygen.config @@ -453,7 +453,7 @@ EXTRACT_PACKAGE = NO # included in the documentation. # The default value is: NO. -EXTRACT_STATIC = NO +EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined # locally in source files will be included in the documentation. If set to NO, @@ -680,7 +680,7 @@ SHOW_FILES = YES # Folder Tree View (if specified). # The default value is: YES. -SHOW_NAMESPACES = YES +SHOW_NAMESPACES = NO # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from @@ -790,9 +790,9 @@ WARN_LOGFILE = # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. -INPUT = "src/RealmJson.Extensions/Extension.cs" \ - "README.md" \ - "Doxygen/extra.css" +INPUT = "./src/RealmJson.Extensions/Extension.cs" \ + "./README.md" \ + "./Doxygen/extra.css" # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses diff --git a/README.md b/README.md index f99b12b..b30f94f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,11 @@ Post on [StackOverflow](http://stackoverflow.com/questions/tagged/xamarin+realm) * .CreateObjectFromJson\(Stream) * .CreateOrUpdateObjectFromJson\(string) * .CreateOrUpdateObjectFromJson\(Stream) + * .CreateOrUpdateObjectFromJson\(Stream) +* A RealmObject Instance: + * .NonManagedCopy\() + * .NonManagedCopy() ##Usage / Examples: diff --git a/docs/_extension_8cs.html b/docs/_extension_8cs.html new file mode 100644 index 0000000..351ff21 --- /dev/null +++ b/docs/_extension_8cs.html @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: src/RealmJson.Extensions/Extension.cs File Reference + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + + +
+
+ +
+
Extension.cs File Reference
+
+
+ + + + + +

+Classes

class  SushiHangover.RealmJson.RealmDoesJson
 .Net Realm does json. More...
 
+ + + +

+Namespaces

namespace  SushiHangover.RealmJson
 
+
+ + + + + diff --git a/docs/_r_e_a_d_m_e_8md.html b/docs/_r_e_a_d_m_e_8md.html new file mode 100644 index 0000000..6a98191 --- /dev/null +++ b/docs/_r_e_a_d_m_e_8md.html @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: README.md File Reference + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
+
README.md File Reference
+
+
+
+ + + + + diff --git a/docs/annotated.html b/docs/annotated.html new file mode 100644 index 0000000..2c045b6 --- /dev/null +++ b/docs/annotated.html @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Class List + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
+
Class List
+
+
+
Here are the classes, structs, unions and interfaces with brief descriptions:
+
[detail level 123]
+ + + +
 NSushiHangover
 NRealmJson
 CRealmDoesJson.Net Realm does json.
+
+
+ + + + + diff --git a/docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json-members.html b/docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json-members.html new file mode 100644 index 0000000..e0ae24a --- /dev/null +++ b/docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json-members.html @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Member List + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + + +
+
+
+
SushiHangover.RealmJson.RealmDoesJson Member List
+
+
+ +

This is the complete list of members for SushiHangover.RealmJson.RealmDoesJson, including all inherited members.

+ + + + + + + + + + +
CreateAllFromJson< T >(this Realm realm, Stream stream, bool updateExistingRecords=true, bool inTransaction=false)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
CreateAllFromJson< T >(this Realm realm, string jsonString, bool updateExistingRecords=true, bool inTransaction=false)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
CreateAllFromJsonViaAutoMapper< T >(this Realm realm, Stream stream, bool inTransaction=false)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
CreateObjectFromJson< T >(this Realm realm, string jsonString, bool inTransaction=false)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
CreateObjectFromJson< T >(this Realm realm, Stream stream, bool inTransaction=false)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
CreateOrUpdateObjectFromJson< T >(this Realm realm, string jsonString, bool inTransaction=false)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
ExMalFormeJsonMessageSushiHangover.RealmJson.RealmDoesJson
NonManagedCopy(this RealmObject realmObject)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
NonManagedCopy< T >(this RealmObject realmObject)SushiHangover.RealmJson.RealmDoesJsoninlinestatic
+ + + + + diff --git a/docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json.html b/docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json.html new file mode 100644 index 0000000..fc85ddc --- /dev/null +++ b/docs/class_sushi_hangover_1_1_realm_json_1_1_realm_does_json.html @@ -0,0 +1,643 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: SushiHangover.RealmJson.RealmDoesJson Class Reference + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + + +
+
+ +
+
SushiHangover.RealmJson.RealmDoesJson Class Reference
+
+
+ +

.Net Realm does json. + More...

+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

static T CreateObjectFromJson< T > (this Realm realm, string jsonString, bool inTransaction=false)
 Creates a single RealmObject from a json string. More...
 
static T CreateObjectFromJson< T > (this Realm realm, Stream stream, bool inTransaction=false)
 Creates the single RealmObject from a stream containing json. More...
 
static T CreateOrUpdateObjectFromJson< T > (this Realm realm, string jsonString, bool inTransaction=false)
 Creates or updates a single RealmObject from a json string. More...
 
static void CreateAllFromJson< T > (this Realm realm, Stream stream, bool updateExistingRecords=true, bool inTransaction=false)
 Creates multiple RealmObjects from a json stream More...
 
static void CreateAllFromJson< T > (this Realm realm, string jsonString, bool updateExistingRecords=true, bool inTransaction=false)
 Creates multiple RealmObjects from a json string. More...
 
static void CreateAllFromJsonViaAutoMapper< T > (this Realm realm, Stream stream, bool inTransaction=false)
 Creates multiple RealmObjects from a json stream using AutoMapper More...
 
static T NonManagedCopy< T > (this RealmObject realmObject)
 Create a Generic non-managed RealmObject Copy More...
 
static RealmObject NonManagedCopy (this RealmObject realmObject)
 Create a non-managed RealmObject Copy. More...
 
+ + + + +

+Public Attributes

const string ExMalFormeJsonMessage = "Malformed Json"
 Malformed json exception message. More...
 
+

Detailed Description

+

.Net Realm does json.

+

Member Function Documentation

+ +

◆ CreateAllFromJson< T >() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
static void SushiHangover.RealmJson.RealmDoesJson.CreateAllFromJson< T > (this Realm realm,
Stream stream,
bool updateExistingRecords = true,
bool inTransaction = false 
)
+
+inlinestatic
+
+ +

Creates multiple RealmObjects from a json stream

+
Parameters
+ + + + + +
realmRealm Instance.
streamStream.
updateExistingRecordsIf set to true update existing records.
inTransactionIf set to true in transaction.
+
+
+
Template Parameters
+ + +
TRealmObject-based Class.
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+ +

◆ CreateAllFromJson< T >() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
static void SushiHangover.RealmJson.RealmDoesJson.CreateAllFromJson< T > (this Realm realm,
string jsonString,
bool updateExistingRecords = true,
bool inTransaction = false 
)
+
+inlinestatic
+
+ +

Creates multiple RealmObjects from a json string.

+
Parameters
+ + + + + +
realmRealm Instance.
jsonStringJson string.
updateExistingRecordsIf set to true update existing records.
inTransactionIf set to true in transaction.
+
+
+
Template Parameters
+ + +
TRealmObject-based Class.
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+ +

◆ CreateAllFromJsonViaAutoMapper< T >()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
static void SushiHangover.RealmJson.RealmDoesJson.CreateAllFromJsonViaAutoMapper< T > (this Realm realm,
Stream stream,
bool inTransaction = false 
)
+
+inlinestatic
+
+ +

Creates multiple RealmObjects from a json stream using AutoMapper

+
Parameters
+ + + + +
realmRealm Instance.
streamStream.
inTransactionbool.
+
+
+
Template Parameters
+ + +
TRealmObject-based Class.
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+ +

◆ CreateObjectFromJson< T >() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
static T SushiHangover.RealmJson.RealmDoesJson.CreateObjectFromJson< T > (this Realm realm,
string jsonString,
bool inTransaction = false 
)
+
+inlinestatic
+
+ +

Creates a single RealmObject from a json string.

+
Returns
+
Parameters
+ + + + +
realmRealm Instance
jsonStringJson string
inTransactionbool.
+
+
+
Template Parameters
+ + +
TRealmOject-based Class..
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+ +

◆ CreateObjectFromJson< T >() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
static T SushiHangover.RealmJson.RealmDoesJson.CreateObjectFromJson< T > (this Realm realm,
Stream stream,
bool inTransaction = false 
)
+
+inlinestatic
+
+ +

Creates the single RealmObject from a stream containing json.

+
Returns
The object from json.
+
Parameters
+ + + + +
realmRealm Instance.
streamStream.
inTransactionbool.
+
+
+
Template Parameters
+ + +
TRealmObject-based Class.
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+ +

◆ CreateOrUpdateObjectFromJson< T >()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
static T SushiHangover.RealmJson.RealmDoesJson.CreateOrUpdateObjectFromJson< T > (this Realm realm,
string jsonString,
bool inTransaction = false 
)
+
+inlinestatic
+
+ +

Creates or updates a single RealmObject from a json string.

+
Returns
the updatex object from json.
+
Parameters
+ + + + +
realmRealm Instance.
jsonStringJson string.
inTransactionIf set to true in transaction.
+
+
+
Template Parameters
+ + +
TRealmObject-based Class.
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+ +

◆ NonManagedCopy()

+ +
+
+ + + + + +
+ + + + + + + + +
static RealmObject SushiHangover.RealmJson.RealmDoesJson.NonManagedCopy (this RealmObject realmObject)
+
+inlinestatic
+
+ +

Create a non-managed RealmObject Copy.

+
Returns
The managed copy.
+
Parameters
+ + +
realmObjectRealm object.
+
+
+ +
+
+ +

◆ NonManagedCopy< T >()

+ +
+
+ + + + + +
+ + + + + + + + +
static T SushiHangover.RealmJson.RealmDoesJson.NonManagedCopy< T > (this RealmObject realmObject)
+
+inlinestatic
+
+ +

Create a Generic non-managed RealmObject Copy

+
Returns
The managed copy.
+
Parameters
+ + +
realmObjectRealm object.
+
+
+
Template Parameters
+ + +
TThe 1st type parameter.
+
+
+
+
Type Constraints
+ + +
T :RealmObject 
+
+
+
+ +
+
+

Member Data Documentation

+ +

◆ ExMalFormeJsonMessage

+ +
+
+ + + + +
const string SushiHangover.RealmJson.RealmDoesJson.ExMalFormeJsonMessage = "Malformed Json"
+
+ +

Malformed json exception message.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • src/RealmJson.Extensions/Extension.cs
  • +
+
+ + + + + diff --git a/docs/classes.html b/docs/classes.html new file mode 100644 index 0000000..4fa16ed --- /dev/null +++ b/docs/classes.html @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Class Index + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
+
Class Index
+
+
+ + + + + + +
  r  
+
RealmDoesJson (SushiHangover.RealmJson)   
+ +
+ + + + + diff --git a/docs/extra_8css.html b/docs/extra_8css.html new file mode 100644 index 0000000..1fe6e89 --- /dev/null +++ b/docs/extra_8css.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Doxygen/extra.css File Reference + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + + +
+
+
+
extra.css File Reference
+
+
+
+ + + + + diff --git a/docs/files.html b/docs/files.html new file mode 100644 index 0000000..61bd51b --- /dev/null +++ b/docs/files.html @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: File List + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
+
File List
+
+
+
Here is a list of all files with brief descriptions:
+
[detail level 123]
+ + + + + +
  Doxygen
 extra.css
  src
  RealmJson.Extensions
 Extension.cs
+
+
+ + + + + diff --git a/docs/functions.html b/docs/functions.html new file mode 100644 index 0000000..dd97ee4 --- /dev/null +++ b/docs/functions.html @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Class Members + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
Here is a list of all documented class members with links to the class documentation for each member:
+
+ + + + + diff --git a/docs/functions_func.html b/docs/functions_func.html new file mode 100644 index 0000000..c8a25ab --- /dev/null +++ b/docs/functions_func.html @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Class Members - Functions + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
+ + + + + diff --git a/docs/functions_vars.html b/docs/functions_vars.html new file mode 100644 index 0000000..0952b8f --- /dev/null +++ b/docs/functions_vars.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + +SushiHangover.RealmJson.Extensions: Class Members - Variables + + + + + + + + +
+
+ + + + + + + +
+
SushiHangover.RealmJson.Extensions +
+
Extension Methods for adding JSON APIs to a Realm Instance.
+
+
+ + + + + + +
+
+
+ + + + + diff --git a/docs/index.hhc b/docs/index.hhc index af4ea2e..b7116cd 100644 --- a/docs/index.hhc +++ b/docs/index.hhc @@ -4,15 +4,36 @@
    -
  • +
    • -
    • +
        • -
        • +
        • +
            +
          • +
              +
            • +
            • +
            • +
            • +
            • +
            • +
            • +
            • +
            • +
            +
      +
    • +
    • +
        +
      • +
      • +
      • +
diff --git a/docs/index.hhk b/docs/index.hhk index 27746e4..466e0db 100644 --- a/docs/index.hhk +++ b/docs/index.hhk @@ -4,8 +4,25 @@
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
diff --git a/docs/index.hhp b/docs/index.hhp index 622107b..f58aa7d 100644 --- a/docs/index.hhp +++ b/docs/index.hhp @@ -14,11 +14,17 @@ main="SushiHangover.RealmJson.Extensions","index.hhc","index.hhk","index.html"," [FILES] namespace_sushi_hangover.html namespace_sushi_hangover_1_1_realm_json.html +class_sushi_hangover_1_1_realm_json_1_1_realm_does_json.html +class_sushi_hangover_1_1_realm_json_1_1_realm_does_json-members.html dir_1148ebc2b25b55095aebf6f4cbb6efca.html dir_81692ea059f90dfc3a4a8d72e861a8a1.html dir_68267d1309a1af8e8297ef4c3efbcdba.html index.html -namespaces.html +annotated.html +classes.html +functions.html +functions_func.html +functions_vars.html tab_a.png tab_b.png tab_h.png diff --git a/docs/index.html b/docs/index.html index 05419b1..f3c9fef 100644 --- a/docs/index.html +++ b/docs/index.html @@ -89,6 +89,12 @@

Extension API:

  • .CreateObjectFromJson<T>(Stream)
  • .CreateOrUpdateObjectFromJson<T>(string)
  • .CreateOrUpdateObjectFromJson<T>(Stream)
  • +
  • .CreateOrUpdateObjectFromJson<T>(Stream)
  • + + +
  • A RealmObject Instance:
      +
    • .NonManagedCopy<T>()
    • +
    • .NonManagedCopy()
  • @@ -126,10 +132,10 @@

    (1)Xamarin.Forms Usage

    (3) https://github.com/AutoMapper/AutoMapper/issues/1532

    Build Documention:

    API Reference documention is built via the great

    -
    doxygen Doxygen/doxygen.config

    Building:

    +
    doxygen Doxygen/realmthread.config

    Building:

    xbuild or msbuild based:

    -
    xbuild /p:SolutionDir=./src /target:Clean /p:Configuration=Release src/RealmJson.Extensions/SushiHangover.RealmJson.csproj
    -xbuild /p:SolutionDir=./src /target:Build /p:Configuration=Release src/RealmJson.Extensions/SushiHangover.RealmJson.csproj
    +
    xbuild /p:SolutionDir=./ /target:Clean /p:Configuration=Release   RealmJson.Extensions/RealmJson.Extensions.csproj
    +xbuild /p:SolutionDir=./ /target:Build /p:Configuration=Release RealmJson.Extensions/RealmJson.Extensions.csproj
     

    Testing / NUnitLite Automation:

    Xamarin.Android

    adb shell am instrument -w RealmJson.Test.Droid/app.tests.TestInstrumentation
    diff --git a/docs/menudata.js b/docs/menudata.js
    index 00a854b..d947757 100644
    --- a/docs/menudata.js
    +++ b/docs/menudata.js
    @@ -1,4 +1,9 @@
     var menudata={children:[
     {text:"Main Page",url:"index.html"},
    -{text:"Namespaces",url:"namespaces.html",children:[
    -{text:"Namespace List",url:"namespaces.html"}]}]}
    +{text:"Classes",url:"annotated.html",children:[
    +{text:"Class List",url:"annotated.html"},
    +{text:"Class Index",url:"classes.html"},
    +{text:"Class Members",url:"functions.html",children:[
    +{text:"All",url:"functions.html"},
    +{text:"Functions",url:"functions_func.html"},
    +{text:"Variables",url:"functions_vars.html"}]}]}]}
    diff --git a/docs/namespace_sushi_hangover_1_1_realm_json.html b/docs/namespace_sushi_hangover_1_1_realm_json.html
    index 86662a0..ea0cc01 100644
    --- a/docs/namespace_sushi_hangover_1_1_realm_json.html
    +++ b/docs/namespace_sushi_hangover_1_1_realm_json.html
    @@ -73,8 +73,8 @@
     
    -
    -
    +
    +

    Classes

    class  RealmDoesJson
     .Net Realm does json.
    class  RealmDoesJson
     .Net Realm does json. More...
     
    diff --git a/src/RealmJson.Extensions/Extension.cs b/src/RealmJson.Extensions/Extension.cs index 7f87abc..640df27 100644 --- a/src/RealmJson.Extensions/Extension.cs +++ b/src/RealmJson.Extensions/Extension.cs @@ -58,12 +58,14 @@ public static T CreateObjectFromJson(this Realm realm, Stream stream, bool in } } + /// /// Creates or updates a single RealmObject from a json string. /// - /// + /// the updatex object from json. /// Realm Instance. /// Json string. + /// If set to true in transaction. /// RealmObject-based Class. public static T CreateOrUpdateObjectFromJson(this Realm realm, string jsonString, bool inTransaction = false) where T : RealmObject { @@ -76,7 +78,8 @@ public static T CreateOrUpdateObjectFromJson(this Realm realm, string jsonStr /// /// Realm Instance. /// Stream. - /// bool. + /// If set to true update existing records. + /// If set to true in transaction. /// RealmObject-based Class. public static void CreateAllFromJson(this Realm realm, Stream stream, bool updateExistingRecords = true, bool inTransaction = false) where T : RealmObject { @@ -107,6 +110,8 @@ public static void CreateAllFromJson(this Realm realm, Stream stream, bool up /// /// Realm Instance. /// Json string. + /// If set to true update existing records. + /// If set to true in transaction. /// RealmObject-based Class. public static void CreateAllFromJson(this Realm realm, string jsonString, bool updateExistingRecords = true, bool inTransaction = false) where T : RealmObject { @@ -278,6 +283,12 @@ static RealmObject FindByPKDynamic(Realm realm, Type type, object primaryKeyValu return realm.Find(type.Name, (string)primaryKeyValue); } + /// + /// Create a Generic non-managed RealmObject Copy + /// + /// The managed copy. + /// Realm object. + /// The 1st type parameter. public static T NonManagedCopy(this RealmObject realmObject) where T : RealmObject { var newRecordConfiguration = new MapperConfiguration(cfg => @@ -291,6 +302,11 @@ public static T NonManagedCopy(this RealmObject realmObject) where T : RealmO return realmObjectCopy; } + /// + /// Create a non-managed RealmObject Copy. + /// + /// The managed copy. + /// Realm object. public static RealmObject NonManagedCopy(this RealmObject realmObject) { var objectType = realmObject.GetType(); From 7529620cb16e323e233b539a7b992f2446e7eeb4 Mon Sep 17 00:00:00 2001 From: SushiHangover Date: Tue, 21 Feb 2017 23:43:13 -0800 Subject: [PATCH 3/3] Update to Realm Database 1.0.4 Issue #35 --- src/RealmJson.Extensions.nuspec | 2 +- src/RealmJson.Extensions/SushiHangover.RealmJson.csproj | 8 ++++---- src/RealmJson.Extensions/packages.config | 2 +- src/RealmJson.Test.Droid/RealmJson.Test.Droid.csproj | 8 ++++---- src/RealmJson.Test.Droid/packages.config | 2 +- src/RealmJson.Test.iOS/RealmJson.Test.iOS.csproj | 8 ++++---- src/RealmJson.Test.iOS/packages.config | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/RealmJson.Extensions.nuspec b/src/RealmJson.Extensions.nuspec index 3be3e1b..fc17746 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/SushiHangover.RealmJson.csproj b/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj index 4839e5e..39bf391 100644 --- a/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj +++ b/src/RealmJson.Extensions/SushiHangover.RealmJson.csproj @@ -54,15 +54,15 @@ ..\packages\Remotion.Linq.2.1.1\lib\portable-net45+win+wpa81+wp80\Remotion.Linq.dll - - ..\packages\Realm.Database.1.0.3\lib\portable-net45+sl5+wp8+wpa81+win8+monoandroid+Xamarin.iOS10+monotouch+Xamarin.Mac\Realm.dll - ..\packages\Newtonsoft.Json.9.0.2-beta2\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll ..\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll + + ..\packages\Realm.Database.1.0.4\lib\portable-net45+sl5+wp8+wpa81+win8+monoandroid+Xamarin.iOS10+monotouch+Xamarin.Mac\Realm.dll + @@ -74,5 +74,5 @@ - + \ No newline at end of file diff --git a/src/RealmJson.Extensions/packages.config b/src/RealmJson.Extensions/packages.config index 589c24b..039ea03 100644 --- a/src/RealmJson.Extensions/packages.config +++ b/src/RealmJson.Extensions/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/RealmJson.Test.Droid/RealmJson.Test.Droid.csproj b/src/RealmJson.Test.Droid/RealmJson.Test.Droid.csproj index 0e6f8b2..3775e77 100644 --- a/src/RealmJson.Test.Droid/RealmJson.Test.Droid.csproj +++ b/src/RealmJson.Test.Droid/RealmJson.Test.Droid.csproj @@ -3053,15 +3053,15 @@ ..\packages\Remotion.Linq.2.1.1\lib\portable-net45+win+wpa81+wp80\Remotion.Linq.dll - - ..\packages\Realm.Database.1.0.3\lib\MonoAndroid44\Realm.dll - ..\packages\Newtonsoft.Json.9.0.2-beta2\lib\netstandard1.1\Newtonsoft.Json.dll ..\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll + + ..\packages\Realm.Database.1.0.4\lib\MonoAndroid44\Realm.dll + @@ -3099,5 +3099,5 @@ - + diff --git a/src/RealmJson.Test.Droid/packages.config b/src/RealmJson.Test.Droid/packages.config index 4672998..8b7a63f 100644 --- a/src/RealmJson.Test.Droid/packages.config +++ b/src/RealmJson.Test.Droid/packages.config @@ -5,7 +5,7 @@ - + diff --git a/src/RealmJson.Test.iOS/RealmJson.Test.iOS.csproj b/src/RealmJson.Test.iOS/RealmJson.Test.iOS.csproj index 2d841d1..2098d57 100644 --- a/src/RealmJson.Test.iOS/RealmJson.Test.iOS.csproj +++ b/src/RealmJson.Test.iOS/RealmJson.Test.iOS.csproj @@ -100,15 +100,15 @@ ..\packages\Remotion.Linq.2.1.1\lib\portable-net45+win+wpa81+wp80\Remotion.Linq.dll - - ..\packages\Realm.Database.1.0.3\lib\Xamarin.iOS10\Realm.dll - ..\packages\Newtonsoft.Json.9.0.2-beta2\lib\netstandard1.1\Newtonsoft.Json.dll ..\packages\DotNetCross.Memory.Unsafe.0.2.3.4\lib\netstandard1.0\DotNetCross.Memory.Unsafe.dll + + ..\packages\Realm.Database.1.0.4\lib\Xamarin.iOS10\Realm.dll + @@ -140,5 +140,5 @@ - + \ No newline at end of file diff --git a/src/RealmJson.Test.iOS/packages.config b/src/RealmJson.Test.iOS/packages.config index 1e2d69c..1f458fb 100644 --- a/src/RealmJson.Test.iOS/packages.config +++ b/src/RealmJson.Test.iOS/packages.config @@ -5,7 +5,7 @@ - +