Skip to main content

Class and property restrictions

You can restrict the behavior of classes and properties in several ways.

👉 Select the RESTRICTIONS tab on a property or class.

Class restrictions​

Data Store Only classes​

Data store only classes are not exposed via the API, they exist only within the API and in the database.

Abstract classes​

Abstract classes can only function as base-classes and cannot be persisted.

Readonly classes​

Readonly classes are not editable through the UI and API. Readonly classes are editable within the API (C# code) and database.

Property restrictions​

Restriction Validation Mode​

You can choose whether validation runs only in the UI layer (User interface validation) or also in the API and database layer (Full Validation).

Required​

You can make properties required or not.

Default: false

Min/max length​

Provide minimum and maximum length. Applies only to string-based properties.

Data Store Only properties​

Data Store only properties are not exposed via the API, they exist only within the API and in the database.

Property Edit Mode​

There are several property edit modes:

  • Editable: default, property is always editable.
  • Editable on create: property is only editable on creation.
  • Readonly: property is not editable.

Regular Expression​

Provide a regular expression to validate the property. Applies only to string-based properties.

Unique Value Required​

Do not allow duplicate values â›”. This restriction is always validated on database level (unique index) and requires a MaxLength > 0!