Exemple #1
0
        public DbRemoveResponse Remove()
        {
            Dictionary <string, dynamic> param = new Dictionary <string, dynamic>();

            param["query"] = this.FieldFilters;
            param["multi"] = true;

            DbRemoveResponse res = this.QueryRequest <DbRemoveResponse>("database.deleteDocument", param);

            return(res);
        }
        public DbRemoveResponse Remove()
        {
            Dictionary <string, dynamic> query = new Dictionary <string, dynamic>();
            Dictionary <string, dynamic> param = new Dictionary <string, dynamic>();

            query["_id"]   = this.Id;
            param["query"] = query;
            param["multi"] = false;

            DbRemoveResponse res = this.DocRequest <DbRemoveResponse>("database.deleteDocument", param);

            return(res);
        }