From the course: Building Angular and ASP.NET Web API Apps

Unlock the full course today

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

Creating the entry model

Creating the entry model

From the course: Building Angular and ASP.NET Web API Apps

Start my 1-month free trial

Creating the entry model

- [Instructor] On this part, we are going to create our first model. But, what is a model? A model is just an object that represents the data in your application, and what kind of data do we use in our application. So, if we go to our application, we see that we are working with entries, and each entry has a description, it has a type which can be an income or not, and a value. So let's go to Visual Studio, and start to implement all these fields, one by one. Inside the Visual Studio solution explorer, we are going to see a special folder named Models, that comes by default when you create an empty web API application. You can put your models anywhere you want but by convention, we need to put them here. And a model serves like a signature of a table in our SQL server. So, let us create our model. Right click on this folder, go to Add, and then Class. Since you are going to work with entries, let us name our model Entry, (typing) and then click the Add button. Each property that we…

Contents