Entity Framework like ORM for Cosmos DB


Entity Framework like ORM for Cosmos DB



I am looking for any ORM for Cosmos DB. Most of the client which have been mentioned in samples create a new connection to table when they need i.e. there is no connection pooling policy. It seems creating new connection always as is given in samples is non scalable. Please correct me if I am wrong. And does anyone have any good ORM solution which comes with connection pooling




2 Answers
2



Cosmonaut is exactly what you're looking for.



It is a simple and minimalistic object mapper, which creates a collection-to-object relationship. You can use your POCO objects and do all the CRUD operations.



It supports collection sharing in order to reduce the cost of having multiple objects in one collection as well.



Read more about Cosmonaut here.



Disclaimer, I am the creator of Cosmonaut.





Great to know that you're the creator of Cosmonaut! BTW i did not notice your answer when i posted
– Sajeetharan
Jul 1 at 17:39





@Sajeetharan No worries. I just think that Cosmonaut is exactly what he is looking for, as it is actually inspired by EF heavily.
– Nick Chapsas
Jul 1 at 17:41





downvoter for both answers and question reason please
– Sajeetharan
Jul 1 at 17:49





Hi Nick, From my understanding it seems even in this case I have to share the same collection name in-case I have to pool connections, Otherwise I have to create different store corresponding to each DB. Please correct me if I am wrong
– Akshat
Jul 2 at 0:49





@Akshat There is no need for you to create any connection pooling. Internally the SDK is actually pooling connections for you, so all you need to do is to have as many CosmosStores as you want, registered as singletons (which is how Cosmonaut does it) and the rest is taken care of on the lower level.
– Nick Chapsas
Jul 2 at 8:44



There is no recommended ORM framework available for CosmosDB, there are few ORM libraries out there which you could try,



(i) Cosmonaut


Cosmonaut



(ii) CosmicGraph






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Rothschild family

Cinema of Italy