Update mongoDb

This commit is contained in:
sunkaixuan
2025-07-03 13:13:49 +08:00
parent a1ba6ab5f6
commit 30148a0201
6 changed files with 90 additions and 129 deletions

View File

@@ -39,8 +39,9 @@ namespace MongoDb.Ado.data
if (projection != null)
findFluent = findFluent.Project<BsonDocument>(projection);
var cursor =await findFluent.ToListAsync(token);
return new MongoDbBsonDocumentDataReader(cursor); // 你要确保这个类支持逐行读取 BsonDocument
var cursor =await findFluent.ToListAsync(token);
var result = MongoDbDataReaderHelper.ToDataReader(cursor);
return result;
}
}
}