-
Notifications
You must be signed in to change notification settings - Fork 1
Server Custom Attributes
Home / Developer / Server Tier / Custom Attributes
A number of Custom Attributes have been defined in the CustomAttributes.cs file. These attributes give specific directions to some APIs, classes and methods. All of the attributes assume that the method in question extends one of the BaseTemplate classes. The attributes are listed below:
Applied to a DTO property. This means that any input to this field will be transformed to Lower Case by the Sanitizer.
Applied to a DTO property. This means that any input to this field will be transformed to Upper Case by the Sanitizer.
Applied to an API method. By default, all API calls are traced and recorded in the database. If this attribute is asserted then that method will not leave a trace.
Applied to an API method. If this is asserted then the API call will be recorded in the Analytic table.
Applied to an API method (Read methods only). If this is asserted then the Read will attempt to read a valid cache and only read the database if there is no cache. If the database is read then the cache is recreated from the read. When using this attribute the CAS_REPOSITORY property must be set in order to identify the relevant cache.
Applied to an API method (Create, Update and Delete methods only). If this is asserted then the cache will be flushed at the end of a successful operation. When using this attribute the CAS_REPOSITORY property must be set in order to identify the relevant cache.