In this topic, classes are added for managing movies in a collection. These classes are the "Model" part of the MVC app.
These model classes can be used with any object-relational mapping (ORM) framework that simplifies the data access code that you have to write.
The model classes created are known as POCO classes, from Plain Old CLR Objects. POCO classes don't have any dependency on any ORM. They only define the properties of the data to be stored in the database.
Add a data model class
Right-click the Models folder > Add > Class. Name the file Movie.cs
Update the Models/Movie.cs file with the following code: