beantownace
Active member
- Joined
- Feb 15, 2019
- Messages
- 40
- Programming Experience
- 5-10
Hello all,
I have two lists where I want everything in the left list then adding one property value from the right into that left list joined on a value. Here is what I have.
BsonDocument is a collection of name/value pairs so I can get the value such as invoices["CustomerId"]
Both these lists have the CustomerId and what I am trying to get is a List<BsonDocument> everything in the invoices list with one key value of CustomerName joined on the CustomerId from customers.
List<BsonDocument> invoices;
List<BsonDocument> customers
What is the fastest way to try to do this? I can add a key value pair such as this:
invoices.Add("CustomerName", customerName) but I need this for every BsonDocument in invoices.
Thanks All
I have two lists where I want everything in the left list then adding one property value from the right into that left list joined on a value. Here is what I have.
BsonDocument is a collection of name/value pairs so I can get the value such as invoices["CustomerId"]
Both these lists have the CustomerId and what I am trying to get is a List<BsonDocument> everything in the invoices list with one key value of CustomerName joined on the CustomerId from customers.
List<BsonDocument> invoices;
List<BsonDocument> customers
What is the fastest way to try to do this? I can add a key value pair such as this:
invoices.Add("CustomerName", customerName) but I need this for every BsonDocument in invoices.
Thanks All