First, we need to create a model for covert type.
Let's stop the application.
There will be when they go to our models project, add a new class file.
Which will become our type.
And this will be a public class, and we want to create two properties in there.
First will be an idea.
You can add key data annotation, but that is optional since the name is Haiti itself.
If you do not add that, it will automatically make that a primary key.
The next thing we have required property or name.
And if you want, you can add next month it is not needed.
I have also added a display property for cover type that way we had more explicit.
This looks good for that model.
If you have not added display AMAX nine, that's OK.
Don't worry.
Let's go back to our assignment here.
Next, we have to push covert type two data piece, so we will have to add an entry inside the application
deep context where we have to create a TV set for covert type.
We're working on that as cover types, and that will be the database table name that will be created.
In order to create that, we open up the package manager, console and migration and cover type two
TV.
Once the migration is done, whether run the command update database to push the migration to our database.
Then we have to implement the covert repository to perform the current operations and ad unit of work.
So let's get back here.
We can copy the category repository interface and implementation that will give us a head start with
a contract, the covert Typekit repository that will copy the covert type and replace that for the class
name constructor name.
The interface will be Aykut Typekit repository with it.
Add that in just a second.
The motto here will cover time and make sure you are working undercover Typekit repository.
This model will also be the cover type.
And looks good.
Let me save this.
Let's implement the repository.
This will be a covert type repository that's based on that name here, and the model here will be cover
type.
On Update, you want to update the cover of time so that the repositories looks good.
Let me close out the tab and open up the unit of work inside the interface, where we'll have to create
the Aykut Typekit repository that they're called that as cover type, which will only have the character
that's implemented it off work.
We need public eye cover type repository named will be cover type.
We have cat and Typekit set and here we've set the cover type is equal to a new cover type suppository.
So with this, everything that we had to do in our first assignment looks good.
Let's build our project and make sure we don't have any error message.
Perfect.
Looks good.