2025-05-02 07:54:16 +08:00
|
|
|
|
using MongoDb.Ado.data;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace MongoDb.Ado.data
|
|
|
|
|
{
|
|
|
|
|
public class ExecuteHandlerFactory
|
|
|
|
|
{
|
|
|
|
|
public readonly static Dictionary<string, IMongoOperationHandler> Items = new Dictionary<string, IMongoOperationHandler>(StringComparer.OrdinalIgnoreCase)
|
|
|
|
|
{
|
|
|
|
|
{ "insert", new InsertHandler() },
|
|
|
|
|
{ "insertmany", new InsertManyHandler() },
|
|
|
|
|
{ "update", new UpdateHandler() },
|
|
|
|
|
{ "updatemany", new UpdateManyHandler() },
|
|
|
|
|
{ "delete", new DeleteHandler() },
|
|
|
|
|
{ "deletemany", new DeleteManyHandler() },
|
2025-05-02 11:39:41 +08:00
|
|
|
|
{ "find", new NonFindHandler() }
|
2025-05-02 07:54:16 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|