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

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