After you have generated the code, you can use the methods in the generated classes to access and manipulate the information in the database. For keyed tables (mappings that have data IDs), the following methods are generated:
If your mapping is to a keyless table, by default the mapping will have no data ID, and so retrieve, delete, update, and updateAll will not be generated. The add method will be generated. If your mapping is to a schema that is an SQL statement, then none of these methods will be generated.
Customize or Suppress Code Generation
for add, retrieve, or delete Methods
The default add, retrieve, and delete methods are listed in the
Methods window (click mapping icon and select Methods).
The update method is not listed in the window. If you will not be
using one or more of these listed methods, you can select the
appropriate methods and click Hide to suppress
their code generation. If you want to tailor these methods, for
example exclude some attributes in the add method, you can copy
the add method to create a new add1 method and customize it. You
can then hide the default add method. In the generated code, you
will get the add1 method.
There are many other methods for <class> objects and <class>DataId objects. They are described in the Data Access Class Library and Generated Code reference. You can also customize the generated classes by defining your own methods to work with the data.
![]()
Data Access
Class Library and Generated Code
