Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from doc in docs
  2. where doc["@metadata"]["Raven-Entity-Name"] == "Derivatives"
  3. select new {
  4. Id = doc.__document_id, doc.DerivativeType, doc.Manufacturer, doc.Range, doc.BodyStyle, doc.FuelType, doc.Transmission,  doc.DerivativeName, doc.Introduced,
  5. QueryPath = doc.DerivativeType + "/"  +
  6. doc.Manufacturer + "/" +
  7. doc.Range + "/" +
  8. doc.BodyStyle + "/" +
  9. doc.FuelType + "/" +
  10. doc.Transmission
  11. }