mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-22 16:09:34 +08:00
25 lines
618 B
C#
25 lines
618 B
C#
![]() |
using MongoDB.Bson;
|
|||
|
using MongoDB.Driver;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MongoDb.Ado.data
|
|||
|
{
|
|||
|
public class NonFindHandlerAsync : IMongoOperationHandlerAsync
|
|||
|
{
|
|||
|
public async Task<int> HandleAsync(IMongoCollection<BsonDocument> collection, string json)
|
|||
|
{
|
|||
|
using (var dr = await new DbDataReaderFactoryAsync().HandleAsync("", collection, json))
|
|||
|
{
|
|||
|
if (dr.Read())
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
return 0; // 查询不改变数据库
|
|||
|
}
|
|||
|
}
|
|||
|
}
|