I have the following class that holds reviews:
public class Review
{
public string PartitionKey { get; set; }
public string RowKey { get; set; }
}
IEnumerable<Review> review = // Filled with about 1000 reviews
I also have a class that holds the topics:
public class Topics
{
public string PartitionKey { get; set; }
public string RowKey { get; set; }
public string Topic { get; set; }
}
IEnumerable<Topic> topic = // Filled with about 300 topics
The first SIX characters of the RowKey in Review are the same as the RowKey in Topics. Partition keys in both cases are an empty string and not used.
I have approximately 1000 records in the review class and 300 records in the topics class.
Is there a good way that I can combine Review and Topics using LINQ to populate the new class below:
public class ReviewGrid
{
public string PartitionKey { get; set; } // PartitionKey from Review
public string RowKey { get; set; } // RowKey from Review
public string Topic { get; set; } // This would be the Topic from Topics
}
If I do this with LINQ would it take a long time to create and is there a way I could make it create faster?
I think you are looking for a join on PartitionKey