This is the ninth tutorial from a course that teaches you how to develop an Android application. In the previous tutorial, you created the DatabaseManager class file. You made the DatabaseManager class derive from the SQLiteOpenHelper class. You overrode the onCreate and onUpgrade methods. In this and the next tutorials, you are going to add the methods that you are going to need later, to insert, update, delete or select contact records.
This is the tenth tutorial from a course that teaches you how to develop an Android application. In the previous tutorial, you learned how to implement a method to create new Contact records into the database. You also learned how to implement a method to retrieve a Contact record. In this tutorial, you are going to learn how to implement methods to update, delete and return a list of all contact records.
In this tutorial, you will learn how to create and use a database using the DataContext class. You also will learn how to use the code-first approach to create the tables and their fields based on the mapped classes and properties (using the [Table] and [Column] attributes).
In this tutorial, you are going to create an Entity Framework data model from scratch. You will not create the data model based on an existing database. At the end, you will generate the SQL Server database from the model that you designed.
In this tutorial, you are going to learn how to use Data Annotations attributes to define the primary key and foreign key of your entities. You will also learn how to add migration code to handle the scenario where the schema of your data model changes, after the database has already been created.
In this tutorial, you are going to learn how to configure your entities using Data Annotations attributes. You are going to use the [Table()] and [Column()] attributes to define different names for tables and their columns. You are going to make fields required and have a maximum length using the [MaxLength()] and [Required] data annotations attributes. Finally, you will learn how to add migration code by overriding the OnModelCreating method and creating a class that derives from the EntityTypeConfiguration class.
In this tutorial, you are going to learn how to generate the entire Code First implementation based on an existing database. You can generate the DbContext and entity classes, from an existing database, by using the “Reverse Engineer Code First” feature of the EF Power Tools.