Update mongodb

This commit is contained in:
sunkaixuan
2025-05-02 15:46:46 +08:00
parent 341e314b70
commit 13d2c81fa5

View File

@@ -3,7 +3,9 @@ using MongoDB.Bson.Serialization.Serializers;
using MongoDB.Driver; using MongoDB.Driver;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data;
using System.Data.Common; using System.Data.Common;
using System.Net.Http.Headers;
using System.Text; using System.Text;
namespace MongoDb.Ado.data namespace MongoDb.Ado.data
@@ -24,7 +26,8 @@ namespace MongoDb.Ado.data
} }
else else
{ {
throw new NotSupportedException($" NotSupportedException: {operation} "); ExecuteHandlerFactory.Handler(operation,json, collection);
return new DataTable().CreateDataReader();
} }
return queryHandler.Find(collection, doc); return queryHandler.Find(collection, doc);
} }