mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
Add mongodb
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user