public BSONObj(BSONObj orig) : this(djonwrapperPINVOKE.new_BSONObj__SWIG_1(BSONObj.getCPtr(orig)), true) { if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
internal static HandleRef getCPtr(BSONObj obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
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; }
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; }
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; }
public void add(BSONObj obj) { djonwrapperPINVOKE.BSONArrayObj_add(swigCPtr, BSONObj.getCPtr(obj)); if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve(); }