Core data updating entities

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.

Leave a Reply

  1. Free arab sex chat with cam text 14-Mar-2017 03:16

    Nearest cities: Wheeler, TX (3.4 miles ), Miami, TX (4.0 miles ), Lefors, TX (4.6 miles ), Mc Lean, TX (4.8 miles ), Shamrock, TX (4.9 miles ), Canadian, TX (5.1 miles ), Pampa, TX (5.4 miles ), Reydon, OK (5.5 miles) . Mobeetie-area historical earthquake activity is significantly above Texas state average. Source: Clifford Grammich, Kirk Hadaway, Richard Houseal, Dale E.