Skip to content

Support for CosmosDB through the MongoDB Driver #31

@yonzo

Description

@yonzo

Hi!

I know this request is a little "off topic" in relation to what the project is suppose to resolve, but I'l give it a go nevertheless - hope you can excuse me!

I'd really like to use this package in my project, but I'm targeting Microsoft DocumentDB instead of MongoDB. DocDB's API is complient with the MongoDB API which means you may use a MongoDB driver for the communication.

So theoretically this package should work with DocDB as well, and it does - allmost...
The only exception is that DocDB doesn't support indices in the same way as MongoDB, so it errors out on the "EnsureIndicesCreatedImplAsync" method.

If you don't think this would severly break som coding practices, could you please consider making EnsureIndicesCreatedImplAsync public, so I could override it in my project?

Another option (which might "bloat the code") is to add an optional parameter in the ctor, so we could control whether the indices are created from the calling procedure.

There might be others out there facing the same problem, as Microsoft has no intention of supporting ASP.NET Identity for DocumentDB (as far as I know).

Lastly I'd like to thank you for your efforts in providing this to the community!

Regards,
Jon

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions