Type-safe classes allow you to use the database model in a type-safe way. This gives you the following advantages:
-
Compiling scripts checks whether the classes used are correct. This allows you to detect spelling mistakes in table and column names early on.
-
The development environment can offer auto-completion.
-
The column's data type is detected, which prevents type conversion errors.
To use type-safe classes
-
Edit the corresponding API plug-in (see Editing API plug-ins) and proceed as follows:
-
Add a reference to the type-safe class library of the corresponding database module (AOB.TypedWrappers.dll for example).
This makes the classes for this module available in the <module name>.TypedWrappers namespace (AOB.TypedWrappers for example).
-