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).
User-defined methods are methods for which you fully define the processing, input, and output data in code. This type therefore offers the greatest flexibility.
For examples for the user-defined methods, see the SDK under Sdk01_Basics\03-CustomMethod.cs.
SQL methods are methods that provide data from a predefined SQL query through the API. Create the parameters of a query as SQL parameters.
For examples for the definition of SQL methods, see the SDK under Sdk01_Basics\02-BasicSqlMethod.cs.
Detailed information about this topic
HTTP requests can apply the following HTTP methods:
-
GET: This method requests data from the application server.
-
PUT: This method changes data on the application server.
-
POST: This method creates data on the application server.
-
DELETE: This method deletes data on the application server.