summaryrefslogtreecommitdiff
path: root/nejdb
diff options
context:
space:
mode:
authoradam <adamansky@gmail.com>2013-06-12 01:42:46 +0700
committeradam <adamansky@gmail.com>2013-06-12 01:42:46 +0700
commit0e6a22d6a37d179fdb4e8df5a2279dac904c11be (patch)
treef54eee6504761501a4b76dcaa702bed475328cbd /nejdb
parentdc188a158ba5d6e53b0508ffe7841c548a321fab (diff)
downloadejdb-0e6a22d6a37d179fdb4e8df5a2279dac904c11be.tar.gz
ejdb-0e6a22d6a37d179fdb4e8df5a2279dac904c11be.tar.bz2
ejdb-0e6a22d6a37d179fdb4e8df5a2279dac904c11be.zip
#24
Diffstat (limited to 'nejdb')
-rw-r--r--nejdb/Ejdb.SON/BSONArray.cs2
-rw-r--r--nejdb/Ejdb.SON/BSONDocument.cs4
-rw-r--r--nejdb/nejdb.userprefs2
3 files changed, 5 insertions, 3 deletions
diff --git a/nejdb/Ejdb.SON/BSONArray.cs b/nejdb/Ejdb.SON/BSONArray.cs
index 9025a5a..1fd10ed 100644
--- a/nejdb/Ejdb.SON/BSONArray.cs
+++ b/nejdb/Ejdb.SON/BSONArray.cs
@@ -101,7 +101,7 @@ namespace Ejdb.SON {
}
public BSONDocument SetObject(int idx, BSONDocument val) {
- return base.SetObject(idx.ToString(), val);
+ return base.SetDocument(idx.ToString(), val);
}
public BSONDocument SetArray(int idx, BSONArray val) {
diff --git a/nejdb/Ejdb.SON/BSONDocument.cs b/nejdb/Ejdb.SON/BSONDocument.cs
index 91e94dc..dd40fe9 100644
--- a/nejdb/Ejdb.SON/BSONDocument.cs
+++ b/nejdb/Ejdb.SON/BSONDocument.cs
@@ -49,6 +49,8 @@ namespace Ejdb.SON {
{typeof(BSONTimestamp), (d, k, v) => d.SetTimestamp(k, (BSONTimestamp) v)},
{typeof(BSONCodeWScope), (d, k, v) => d.SetCodeWScope(k, (BSONCodeWScope) v)},
{typeof(BSONBinData), (d, k, v) => d.SetBinData(k, (BSONBinData) v)},
+ {typeof(BSONDocument), (d, k, v) => d.SetDocument(k, (BSONDocument) v)},
+ {typeof(BSONArray), (d, k, v) => d.SetArray(k, (BSONArray) v)},
};
readonly List<BSONValue> _fieldslist;
[NonSerializedAttribute]
@@ -268,7 +270,7 @@ namespace Ejdb.SON {
return SetBSONValue(new BSONValue(BSONType.BINDATA, key, val));
}
- public BSONDocument SetObject(string key, BSONDocument val) {
+ public BSONDocument SetDocument(string key, BSONDocument val) {
return SetBSONValue(new BSONValue(BSONType.OBJECT, key, val));
}
diff --git a/nejdb/nejdb.userprefs b/nejdb/nejdb.userprefs
index 823972a..e0e5278 100644
--- a/nejdb/nejdb.userprefs
+++ b/nejdb/nejdb.userprefs
@@ -2,7 +2,7 @@
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="Ejdb.SON/BSONDocument.cs">
<Files>
- <File FileName="Ejdb.SON/BSONDocument.cs" Line="71" Column="3" />
+ <File FileName="Ejdb.SON/BSONDocument.cs" Line="26" Column="15" />
<File FileName="Ejdb.Tests/TestBSON.cs" Line="46" Column="4" />
</Files>
<Pads>