Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Elfocrash committed Dec 13, 2018
1 parent b00512d commit 63fd2f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Once you set this up you can add individual CosmosStores with shared collections

##### Specifying a different collection name

By default you are required to specify your collection name in the attribute level for both non-shared and shared entity like this:
By default you are required to specify your collection name in the attribute level for both non-shared and shared entities like this:

Non-Shared:
```c#
Expand All @@ -128,7 +128,9 @@ public class Car : ISharedCosmosEntity
```

Even though this is convinient I understand that you might need to have a dynamic way of setting this.
That's why the `CosmosStore` class has some extra constructors what allow you to specify the `overriddenCollectionName` property. This property will override any collection name specified in the attribute level and it will use that one instead.
That's why the `CosmosStore` class has some extra constructors that allow you to specify the `overriddenCollectionName` property. This property will override any collection name specified at the attribute level and will use that one instead.

Note: If you have specified a `CollectionPrefix` at the `CosmosStoreSettings` level it will still be added. You are only overriding the collection name that the attribute would normally set.

Example

Expand Down

0 comments on commit 63fd2f1

Please sign in to comment.