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.

Entity Framework and SQL

Entity Framework and SQL - Azure Tutorial

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

Start my 1-month free trial

Entity Framework and SQL

- [Instructor] Inside of MVC.core, we can add the chores to our application by simply defining a class in the Models folder, so I'm going to go out and I'll add a class, this class is going to be called Chores, I'm actually going to call it Chore 'cause I want to have a class that is single chore, and inside of this class, I'm going to have a couple of properties, one of the properties is going to be an ID, and the ID is something that I would want to be able to get to uniquely identify my chore. I have another string, and we'll put in here for Title, a property for Description, I'm kind of going overboard here, I might have a property for a future use for the owner of the Chore, and maybe I'll have a property saying whether or not this is done, so for that, I'm going to use a bool and that IsDone flag is something that we'll use to set the completed date. Now, I do like to know when I created these, so I can sort them…

Contents