Exemple #1
0
 public BSONObj(BSONObj orig)
     : this(djonwrapperPINVOKE.new_BSONObj__SWIG_1(BSONObj.getCPtr(orig)), true)
 {
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #2
0
 public void add(string arg0, BSONObj arg1)
 {
     djonwrapperPINVOKE.BSONObj_add__SWIG_5(swigCPtr, arg0, BSONObj.getCPtr(arg1));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #3
0
 internal static HandleRef getCPtr(BSONObj obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #4
0
 public bool update(string db, string ns, BSONObj bson)
 {
     bool ret = djonwrapperPINVOKE.DjondbConnection_update__SWIG_1(swigCPtr, db, ns, BSONObj.getCPtr(bson));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #5
0
 public bool insert(string db, string ns, BSONObj obj)
 {
     bool ret = djonwrapperPINVOKE.DjondbConnection_insert__SWIG_1(swigCPtr, db, ns, BSONObj.getCPtr(obj));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #6
0
 public BSONArrayObj find(string db, string ns, string select, string filter, BSONObj options)
 {
     IntPtr cPtr = djonwrapperPINVOKE.DjondbConnection_find__SWIG_5(swigCPtr, db, ns, select, filter, BSONObj.getCPtr(options));
     BSONArrayObj ret = (cPtr == IntPtr.Zero) ? null : new BSONArrayObj(cPtr, false);
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #7
0
 public void add(BSONObj obj)
 {
     djonwrapperPINVOKE.BSONArrayObj_add(swigCPtr, BSONObj.getCPtr(obj));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
 }