From the course: Exploring Performance and Scale with Data Options in Azure

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Code changes for Cosmos SDK

Code changes for Cosmos SDK - Azure Tutorial

From the course: Exploring Performance and Scale with Data Options in Azure

Start my 1-month free trial

Code changes for Cosmos SDK

- [Instructor] In this video, we're going to show how we can use Cosmos instead of SQL to be our data store for our chores. In our MVC routing right now, we default to the home page, I'm just going to go to the ChoresController when we start up, it'll just make things a little bit easier later on. But what I'm going to do is I'm going to go up to where we've got our ConfigureServices and I want to use the pattern of dependency injection to add a Cosmos instance to our application, a service that will work with Cosmos. In order for that to work, I have to have two things. One is I need to have the NuGet package for that. So let's go manage the NuGet packages, and we'll browse out to Microsoft.Azure.Cosmos, and this will then allow me to pull in and install the latest version of this, once I've done that then I need to go and get the connection string for my Cosmos database. And the place where I'm going to do that is going…

Contents