Introduction
Object-relational mappers such as Entity Framework rely on mappings to translate Object-oriented concepts—classes, properties, references, inheritance – to the database world – composed of tables and columns – and vice versa. For example, a table normally translates to a .NET class, and its columns translate to the class properties.
Mapping entities and their properties is something that Entity Framework does automatically, and does generally well. There are some cases, however, in which we need to give it a hand. In this chapter, we will have a look at some special cases: it's going to be all about mappings.