Hi,
I need to change de annotation of Permissions Classes, to DeferredDeletation true and the optimisticLockField off.
How do I do it?
Hi,
I need to change de annotation of Permissions Classes, to DeferredDeletation true and the optimisticLockField off.
How do I do it?
Hello Nathan.
Since DeferredDeletionAttribute and OptimisticLockingAttribute affect service members generation, they cannot be added dynamically or used on classes derived from existing persistent classes. To change the deferred deletion or optimistic locking behavior, you need to implement new classes from scratch. To use your classes in the XAF Security System, implement appropriate interfaces. Refer to the How to: Implement a Custom Security System User Based on an Existing Business Class article and the source code of built-in security classes.
To learn how to implement a custom role from scratch, refer to the source code of the PermissionPolicyRoleBase class (you can find it in the "c:\Program Files (x86)\DevExpress 17.1\Components\Sources\DevExpress.Persistent\DevExpress.Persistent.BaseImpl\PermissionPolicy\PermissionPolicyRoleBase.cs" file, by default).
Please keep us informed of your progress, and let me know if you have any additional questions.
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.