Entities are the focus of Entity Framework Core 5. An entity is an object that maps to one or more tables in a database. Entity Framework Core 5 uses a code-first approach. This means that you create your entities and Entity Framework will generate the database schema to store your entity data.
Person Entity
Our first entity is going to be a Person entity that will have an Id, first name, last name, and one-to-many addresses. The address will be its own entity. First, let’s make the Person entity without any addresses.