SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Person
  2. {  "Name" : "Albert",
  3.    "YOB" : 1900, // Year of born
  4.    "Childs" :
  5.    {  "Name" : "Alan",
  6.       "YOB" : 1923,
  7.       "Childs" :
  8.       {  "Name" : "Bob",
  9.          "YOB" : 1949,
  10.          "Childs" : { // Repeat unknown times }
  11.       },
  12.       {  "Name" : "Bella",
  13.          "YOB" : 1950,
  14.          "Childs" : { ... }
  15.       }
  16.    }
  17. },
  18. {   // another person  },
  19. {   // another person  }
  20.    
  21. var queryFilter = new QueryDocument();
  22. queryFilter.Add(new Dictionary<string,object> { { "Childs.Childs.YOB", 1950 } });
  23.    
  24. result = {{ "Albert", "Bella", 50}, { "Other Name", "Other Name", 50 }, ... };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top