The Code First approach follows conventions over the configuration but it also gives us two ways to add a configuration on over classes.
One is using simple attributes called Data Annotations and another is using Code First's Fluent API, that provides you with a way to descried configuration imperatively, in code.
The goal of this chapter is to get you up and running with the most common Core Data features that apps need.
This is the second article for our Core Data series.
Previously, we gave you a brief introduction of Core Data and created a simple app to store all your device information.
For example if we want to store information about a Customer and his Order then we need to create two tables, one for the Customer and another for the Order.
Both tables, Customer and Order, will have the relationship one-to-many so whenever we retrieve all orders of a customer then we can easily retrieve them. In this article I will cover the following: Entity Framework Code First allows us to use our own domain classes to represent the model that Entity Framework relies on to perform querying, change tracking and updating functions.