locked
can i use normal sql query to consume data from document db(COSMOS DB) without using LINQ in mvc RRS feed

  • Question

  • User1720628292 posted

    can i use normal sql query to consume data from document db(COSMOS DB) without using LINQ in mvc?

    Friday, May 26, 2017 7:17 AM

Answers

  • User753101303 posted

    Hi,

    Really new to that but AFAIK yes: https://docs.microsoft.com/en-us/azure/documentdb/documentdb-sql-query (edit: my understanding is that Cosmos Db is precisely a distributed database that can be accessed using a bunch of distinct APIs).

    Anyway LINQ is never required. It is a way to bring queries into C# but ultimately it always have to be translated into a lower level API that access the underlying store (though not necessarily SQL) and you are always to tap directly into this lower level API if you prefer.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 26, 2017 1:26 PM