Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now that the Mapper entities are defined and the database schema has automatically been generated, you’re left with a fresh, empty database complete with all the necessary tables. This section covers the controls provided by Mapper for constructing, querying, updating, and deleting records in the backend database. Section 10.2.1 details how you can insert data into the database purely by interacting with the Mapper entities, and section 10.2.2 demonstrates the different ways in which you can use Mapper to construct type-safe queries, or even write your own SQL statements directly.
Let’s start by inserting some data into the database using the Mapper entities.