Skip to content

Commit 79e69fe

Browse files
Merge pull request #149 from tjrobinson/patch-1
Update name of discriminator field to `split_discriminator` and other minor corrections
2 parents 0c39973 + 026f4df commit 79e69fe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -512,19 +512,19 @@ public class MyDeathStarContext : CouchContext
512512
513513
protected override void OnDatabaseCreating(CouchDatabaseBuilder databaseBuilder)
514514
{
515-
databaseBuilder.Document<Rebel>().ToDatabase("troups");
516-
databaseBuilder.Document<Vehicle>().ToDatabase("troups");
515+
databaseBuilder.Document<Rebel>().ToDatabase("troops");
516+
databaseBuilder.Document<Vehicle>().ToDatabase("troops");
517517
}
518518
}
519519
```
520-
> When multiple `CouchDatabase` point to the same **database**, a `_discriminator` field is added on documents creation.
520+
> When multiple `CouchDatabase` point to the same **database**, a `split_discriminator` field is added on document creation.
521521
>
522-
> When querying, a filter by `discriminator` is added automatically.
522+
> When querying, a filter by `split_discriminator` is added automatically.
523523

524-
If you are not using `CouchContext`, you can still use the database slit feature:
524+
If you are not using `CouchContext`, you can still use the database split feature:
525525
```csharp
526-
var rebels = client.GetDatabase<Rebel>("troups", nameof(Rebel));
527-
var vehicles = client.GetDatabase<Vehicle>("troups", nameof(Vehicle));
526+
var rebels = client.GetDatabase<Rebel>("troops", nameof(Rebel));
527+
var vehicles = client.GetDatabase<Vehicle>("troops", nameof(Vehicle));
528528
```
529529

530530
## Views
@@ -712,4 +712,4 @@ Thanks to [n9](https://github.com/n9) for proxy authentication, some bug fixes,
712712
713713
Thanks to [Marc](https://github.com/bender-ristone) for NullValueHandling, bug fixes and suggestions!
714714
715-
Thanks to [Panos](https://github.com/panoukos41) for the help with Views and Table splitting.
715+
Thanks to [Panos](https://github.com/panoukos41) for the help with Views and Table splitting.

0 commit comments

Comments
 (0)