| #define SQT_COLUMN_FIELD_2 | ( | COLUMN_NAME, | |
| INSTANCE_NAME, | |||
| FIELD ) |
Defines a column with a custom instance name that binds to the specified field of the entity type.
| COLUMN_NAME | The name of the column in the database. |
| INSTANCE_NAME | The name of the column instance. |
| FIELD | The field of the entity type to which the column is bound. |
This macro is similar to the SQT_COLUMN_FIELD macro, except that it allows specifying a custom name for the column instance. This is useful in scenarios where the auto-generated instance name would conflict with other names generated by the framework.
The instance name is also used to generate the class name of the column type, which is formed by appending the instance name to the prefix ColumnType_.
Example usage:
The following code demonstrates the generated definition of the Value column in the table type: