RavenDB multi map

后端 未结 1 841
星月不相逢
星月不相逢 2021-01-21 21:59

I have a DB containing many tables, and every table has different properties, and I want to achive the following:

Create and index on all of the proper

1条回答
  •  深忆病人
    2021-01-21 22:23

    David, You don't have tables in RavenDB, but that aside, you can just define an index over the entire data set, like this:

         from doc in docs select new { doc.Name }
    

    Which will define an index over all types, allowing you to query over all the documents' names.

    0 讨论(0)
提交回复
热议问题