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 - Azure Tutorial
From the course: Exploring Performance and Scale with Data Options in Azure
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Overview of Cosmos DB5m 27s
-
(Locked)
Provisioning Cosmos DB2m 48s
-
(Locked)
Coding patterns for Cosmos41s
-
(Locked)
Code changes for Cosmos SDK7m 41s
-
(Locked)
Designing for performance in Cosmos6m 8s
-
(Locked)
Challenge: Convert app to Cosmos25s
-
(Locked)
Solution: Convert app to Cosmos7m 4s
-
(Locked)
-
-