Property Editor

This dialog box allows you to create and edit properties.

To call Property Editor, use one of the following options:

  • In the Model Explorer window or in the diagram right-click the required class or complex type to call its context menu, and in the Add submenu select New Property.
  • In the Model Explorer window or in the diagram select the required class or complex type and press ALT+P.
  • In the Model Explorer window or in the diagram right-click an existing property and in its context menu select Edit.

The following options are available:

Name – Set the property name here.

Source – Set the table column, the property will be mapped to. If left blank, property name is used.

Type – Set property type.

Server Data Type – Set the data type of the table column, the property will be mapped to.

Inheritance Modifier – Set property inheritance modifier. The Inheritance Modifier can take None, New, NewVirtual, Override, or Virtual value.

  • None – The default value. No inheritance modification is performed.
  • New – Specifies that the derived base class property with this name is explicitly hidden.
  • NewVirtual – Specifies that the derived base class property with this signature is explicitly hidden, and this property of this class can be overridden in the derived class.
  • Override – Specifies that the property overrides the one, derived from the base class.
  • Virtual – Specifies that the property can be overridden in the derived class.

Nullable – Select to make the property nullable.

Entity Key – Select whether this property is a part of the entity key.

Read Only – Select whether this property is read-only.

Auto Generated Value – Select whether this property is mapped to the column which is filled automatically.

Is Version – Select if the column type of the property is a database timestamp or version number.

Delay Loaded – Select if you want to load the property value from database when the property is accessed for the first time.

Access – Set the property access here.

Update Check – Set to override the default handling of optimistic concurrency conflict detection. Can be Always, Never, and WhenChanged.

Auto-Sync – Determines whether to synchronize value automatically when an insert or update occurs. Can be OnInsert, OnUpdate, Always, and Never.

Documentation – Click to open the Documentation Editor, which contains the following fields.

Long Description – Enter a long property description here if you need it.

Summary – Enter a brief description of a property here.

See also

Dialog windows

Class Editor

Properties