© John Kouraklis 2019
John KouraklisIntroducing Delphi ORMhttps://doi.org/10.1007/978-1-4842-5013-6_4

4. Basic Operations

John Kouraklis1 
London, UK

The CallCentre application is in a state where it provides the necessary GUI interaction to allow us to explore Aurelius’ features. In this chapter, we investigate how we can manage basic database operations and, near the end, we deal with managing a big number of transactions. The initial project to start with is in the CallCentre – Without Utilities folder.

Adding Entities

We have two entities to manage in our application: agents and departments. Adding them is pretty straightforward.
  1. 1.

    Go to MainForm.pas, in the OnClick event of btAddDepartment button.

  2. 2.
    Add the following code:
      Database.Session.Types, ...

Get Introducing Delphi ORM: Object Relational Mapping Using TMS Aurelius now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.