Add mongodb

This commit is contained in:
sunkaixuan
2025-05-02 17:03:48 +08:00
parent e999988ec3
commit c29010dcf0
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ namespace MongoDb.Ado.data
public readonly static Dictionary<string, IQueryHandler> Items = new Dictionary<string, IQueryHandler>(StringComparer.OrdinalIgnoreCase) public readonly static Dictionary<string, IQueryHandler> Items = new Dictionary<string, IQueryHandler>(StringComparer.OrdinalIgnoreCase)
{ {
{ "find", new QueryFindHandler() }, { "find", new QueryFindHandler() },
{ "aggregate", new QueryFindHandler() }, { "aggregate", new QueryAggregateHandler() },
}; };
public DbDataReader Handle(string operation, IMongoCollection<BsonDocument> collection, string json) public DbDataReader Handle(string operation, IMongoCollection<BsonDocument> collection, string json)
{ {

View File

@@ -16,7 +16,7 @@ namespace MongoDb.Ado.data
public readonly static Dictionary<string, IQueryHandlerAsync> Items = new Dictionary<string, IQueryHandlerAsync>(StringComparer.OrdinalIgnoreCase) public readonly static Dictionary<string, IQueryHandlerAsync> Items = new Dictionary<string, IQueryHandlerAsync>(StringComparer.OrdinalIgnoreCase)
{ {
{ "find", new QueryFindHandlerAsync() }, { "find", new QueryFindHandlerAsync() },
{ "aggregate", new QueryFindHandlerAsync() }, { "aggregate", new QueryAggregateHandlerAsync() },
}; };
public async Task<DbDataReader> HandleAsync(string operation, IMongoCollection<BsonDocument> collection, string json) public async Task<DbDataReader> HandleAsync(string operation, IMongoCollection<BsonDocument> collection, string json)
{ {