Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Persistence with Mapper > Interacting with Mapper

10.2. Interacting with Mapper

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial