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.

Solution: Add core owners table

Solution: Add core owners table - Azure Tutorial

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

Start my 1-month free trial

Solution: Add core owners table

(upbeat music) - [Man] So, the challenge was to allow us to track owners of our application, so we know who the owner of the chores are, and all we're being asked for in this challenge is just to track their name, address, and when we added them. We can do that with SQL Azure, by going into our application and adding a model for that, that would be a class that we'd add, and we'll call that class, owners. So, our owner class is going to have some properties in it. One of the properties, a property that's pretty standard for most SQL stuff is a key, and I'm going to use a string for my primary key, going to call it ID. I have a property for the name, and we have a property for their address, and then I'm going to have a property for the date time when it was added. So, the date time is going to be created date, and then I'm going to have a constructor that actually sets some of these values when we get started, and the one…

Contents