Ticket Q427834
Visible to All Users

XPO Data Model Wizard - Provide the capability to create read-only persistent properties

created 13 years ago

How can we have a ReadOnly persistent field put in the model?

One thing I have been doing is subscribing to the Object.Changed event then checking if a field has changed, if so I then set a read only value.

But I would like to see the read only value in the designer so it gives a graphical representation, currently I have to declare it in the partial class.

Answers

created 12 years ago (modified 12 years ago)

Hello Michael,
We have implemented your request in 12.2. I should explicitly mention that readonly properties generated by the wizard will follow the pattern shown in this help article.
Take special note that it will be also impossible to make delayed properties readonly via the designer.

    created 12 years ago (modified 11 years ago)

    Hi Michael,
    Unless I'm mistaken, you mean a persistent property without a setter (e.g. as demonstrated in the How to: Use Read-Only Persistent Properties article). This capability is not currently supported. We will consider it regarding future releases of our wizard.

      Comments (1)
      M M
      Michael Proctor [DX-Squad] 13 years ago

        Yes a readonly persistent property with a private setter. OK will await a future release.

        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.