public static DataTable ToDataTable(BsonDocument document) { DocumentsToDataTable documentsToDataTable = new DocumentsToDataTable(new BsonDocument[] { document }); return(documentsToDataTable.ToDataTable()); }
public static DataTable ToDataTable(IEnumerable <BsonDocument> documents) { DocumentsToDataTable documentsToDataTable = new DocumentsToDataTable(documents); return(documentsToDataTable.ToDataTable()); }