mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Upddate mongodb
This commit is contained in:
@@ -83,19 +83,19 @@ namespace MongoDb.Ado.data
|
||||
{
|
||||
var (operation, collectionName, json) = ParseCommand(_commandText);
|
||||
var collection = GetCollection(collectionName);
|
||||
return ExecuteHandlerFactoryAsync.HandlerAsync(operation, json, collection);
|
||||
return ExecuteHandlerFactoryAsync.HandlerAsync(operation, json, collection, cancellationToken);
|
||||
}
|
||||
public override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
var (operation, collectionName, json) = ParseCommand(_commandText);
|
||||
var collection = GetCollection(collectionName);
|
||||
return new ExecuteScalarHandlerAsync().HandleAsync(operation, collection, json);
|
||||
return new ExecuteScalarHandlerAsync().HandleAsync(operation, collection, json, cancellationToken);
|
||||
}
|
||||
protected override Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior,CancellationToken cancellationToken)
|
||||
{
|
||||
var (operation, collectionName, json) = ParseCommand(_commandText);
|
||||
var collection = GetCollection(collectionName);
|
||||
return new DbDataReaderFactoryAsync().HandleAsync(operation, collection, json);
|
||||
return new DbDataReaderFactoryAsync().HandleAsync(operation, collection, json, cancellationToken);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user