Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-spieser authored Sep 3, 2017
1 parent 296dc6f commit 5827b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ To use partitioned collections, you must define your documents using the Partiti
```

This partitioned key will be used as a prefix to your collection name.
The collection name is derived from the name of the type of your document, is set to lower case, and is currently very naively pluralized (a "s" is added at the end of the type name).
The collection name is derived from the name of the type of your document, is set to camel case, and is pluralized using a class taken from Humanizer (https://github.com/Humanizr/Humanizer).

```
var myDoc = new MyPartitionedDocument("myPartitionKey");
_testRepository.AddOne(myDoc);
```

The above code will generate a collection named `myPartitionKey-mypartitioneddocuments`.
The above code will generate a collection named `myPartitionKey-myPartitionedDocuments`.

Please refer to the IntegrationTests project for more usage examples.

Expand Down

0 comments on commit 5827b5d

Please sign in to comment.