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

Time for action – loading a document

You will use the Management Studio to load a document from the Orders database to view it and modify some values.

  1. Select the Orders database from the Databases screen to activate it and make it the current database.
  2. Select the Documents tab screen to display the documents list.
  3. Click on the Switch between views button and select the ID Only view mode.
  4. Select the document with the ID = Orders/B765760 and click on the pencil icon in the bottom-right corner to open the document in the edit screen.
    Tip

    In the Details view mode, you might double-click on the row that represents the document to open it in the edit screen mode.

  5. Change the Units field value to be 20.
  6. Click on the Save button to make the changes permanent.

What just happened?

We learned how to load the document with the ID Orders/B765760 from the Orders database in the edit screen mode and change its Units value directly in the Management Studio.

In steps 1 to 3, we used the pencil icon to open the document in the edit mode, then in steps 5 and 6, we change the Units field value and save the changes.