Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Collapse]CodeRush
 [Expand]CodeRush for Roslyn
 [Collapse]CodeRush Classic
   What's New
  [Expand]System Requirements
  [Collapse]Concepts
   [Expand]Code Analysis
   [Expand]Code Style
    Feature Advisor
    FrictionFree Mode
    Mastering CodeRush Features
   [Expand]Visualization Tools
   [Expand]Navigation
   [Expand]Advanced Selection Tools
   [Expand]Clipboard Tools
   [Collapse]Coding Assistance
    [Expand]Code Providers
    [Collapse]Code Templates
      Common Code Blocks
      Member Declaration
      One Key Templates
      Types Declaration
      XPO and XAF Templates
    [Expand]Refactorings
     AutoDeclare
     Automatic Declaration
     Comment/Uncomment
     Cycle Scope Up/Down
     Duplicate Line
     Embedding
     Intellassist
     IntelliRush
     Inversions
     Smart Constructor
     Smart Enter
     Smart Parens and Brackets
     Smart Paste
    Unit Test Runner
  [Expand]Visual Elements
  [Expand]Tool Windows
  [Expand]CodeRush Options
  [Expand]Examples
   Get More Help
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

XPO and XAF Templates

CodeRush includes several templates intended to increase the efficiency of working with XPO and XAF.

XPO and XAF templates are located in the DevEx\XPO category on the Templates options page. This category includes the following templates.

Template Description Expansion
xc An XPO persistent class declaration.
xp An XPO persistent property declaration of the specified type. The template must be followed by a type mnemonic.

The example shows the xps template expansion. Meaning the string type mnemonic is used.

xpa An XPO associated property declaration.
xpcl An XPO associated collection declaration.
xr An XPO read-only persistent property declaration of the specified type. The template must be followed by a type mnemonic

The example shows the xrs template expansion. Meaning the string type mnemonic is used.

 

In addition, CodeRush includes XPO type mnemonics, which can be used in member declaration templates. For example, you can use the p template with the xss mnemonic to declare a property of the DevExpress.Xpo.Session type.

The following table lists available XPO type mnemonics.

Type Mnemonic
DevExpress.Data.Filtering.AggregateOperand xao
DevExpress.Data.Filtering.BetweenOperator xbwo
DevExpress.Data.Filtering.BinaryOperator xbo
DevExpress.Data.Filtering.FunctionOperator xfo
DevExpress.Data.Filtering.GroupOperator xgo
DevExpress.Data.Filtering.InOperator xio
DevExpress.Data.Filtering.UnaryOperator xuo
DevExpress.Xpo.Session xss
DevExpress.Xpo.UnitOfWork xu
DevExpress.Xpo.XPCollection xcl

For more information on type mnemonics, see the Dynamic Lists options page description.

Expanded See Also

How would you rate this topic?​​​​​​​