RavenDB 2.x  Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Management Studio's Collections screen

In RavenDB documents are stored in Collections. A Collection is a simple logical way to group related documents together and should not be considered as a "database table". Usually, Collections are used to group together documents that have a similar structure, but this is not a compulsion. From the database standpoint, a Collection is just a group of documents that share the same entity name.

The Collections screen shows a list of all available collections in the database and the documents associated with them. In the Collections tab screen, we can see different types of Collections and we see all documents that are related to the selected collection. The documents are loaded from the database and displayed by newest first. The documents from different collections are striped with different colors.

Within the Collections screen, a document can be edited directly in the Management Studio. To get the document in the editing screen, you can simply double-click on that document in the list or click on the pencil icon on it. In the Edit screen, you can view and modify the whole document data. Also, you can view and modify some of the metadata related to the document being edited. The metadata are displayed on the right of the edit screen section on selecting the Metadata tab.

Navigating the documents section within the Collections screen is done the same way as it is done in the Documents screen.