Ticket S173546
Visible to All Users

Usability - Remove the necessity to manually call the CalculatedPersistentAliasHelper.CustomizeTypesInfo method from custom code when CalculatedPersistentAliasAttribute is used

created 11 years ago

Some built-in classes, like Person and Address, are decorated with the CalculatedPersistentAliasAttriubute, which may be helpful to provide dynamic aliases for calculated properties.
Currently, for this functionality to work in server mode, it is required to manually call the DevExpress.ExpressApp.Xpo.CalculatedPersistentAliasHelper.CustomizeTypesInfo method from within your custom code, even though this looks like a truly service code.
I propose moving this code into the system libraries by default.

Comments (1)

    Please make sure developers can turn this call off or intercept it. For example, performance reasons.

    Answers approved by DevExpress Support

    created 10 years ago

    We have implemented the functionality described in this ticket. It will be included in our next update(s).

    Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

    Additional information:

    Now, in XPO-based XAF solutions created with the Solution Wizard the following line is added to the overridden CustomizeTypesInfo method in the Module.cs file:

    C#
    CalculatedPersistentAliasHelper.CustomizeTypesInfo(typesInfo);

    You can remove this line if you do not need to use CalculatedPersistentAliasAttribute.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.