O'Reilly logo

Introducing Delphi ORM: Object Relational Mapping Using TMS Aurelius by John Kouraklis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

4. Basic Operations

John Kouraklis1 
(1)
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:
    uses
      ...,
      Database.Session.Types, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required