Hello,
i want to know how to do complicated nested lookup in c#
see this code for example:
Inbox.cs
public class Inbox : TDocument
{
public string Name {get;set;}
public List<MongoDBRef> WorkOrdersRef {get;set;}
public List<InboxRule> Rules {get;set;}
[BsonIgnore] public List<WorkOrder> WorkOrders {get;set;}
}
InboxRule.cs
public InboxRule : TDocument
{
public MongoDBRef ServiceRef {get;set;}
public MongoDBRef WorkOrderStatusRef {get;set;}
[BsonIgnore] public Service Service {get;set;}
[BsonIgnore] public WorkOrderStatus WorkOrderStatus {get;set;}
}
how to perform nested lookup or join with one call to return an array of Inboxes with its Rules and the Rules other objects such as Service and WorkOrderStatus