feat(cosmos): support custom document IDs and partition keys

Merged
RE
2mo ago
+300-65

Currently, only custom partition keys are supported. This is a compilation-breaking change, since it changes the interface used to specify the partition key. The usage of that interface was broken in previous releases, and the fix is straightforward: change your implementation of IPartitionKeyProvider to IDocumentIdProvider. Then, if you do not wish to customize the document id, inject DefaultDocumentIdProvider and call GetId to get the document id.

Microsoft Reviewers: Open in CodeFlow