Back to Devexpress

XPO Fields

coderushforroslyn-118872-coding-assistance-code-providers-xpo-fields.md

latest1.3 KB
Original Source

XPO Fields

  • Aug 19, 2021
  • 3 minutes to read

This feature is helpful for those who work with eXpress Persistent Objects. XPO Fields works in the PersistentBase descendants, where it automatically generates and maintains the XPO entities in Simplified Criteria Syntax based on the class members.

Follow the steps below to learn how to use this feature:

  1. Create a PersistentBase descendant.

  2. Add the required fields and properties.

  3. Place the caret on the class name ( MyPersistentClass in this case).

  4. Press the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions menu.

  5. Select Update XPO Fields Class. This will generate or update the new FieldsClass inside the current class. The members with the [NonPersistent] attribute are not included in the FieldsClass class.

You can configure different options of FieldsClass generation on the Editor | All Languages | Code Actions | Update XPO Fields Class options page.