Ticket T446269
Visible to All Users

Using the T418166 in the existing application.

created 8 years ago

[DevExpress Support Team: CLONED FROM T418166: How to use the Allow/Deny permissions policy in the existing project]
Hi,

I am trying to convert my users to new systems. I reworked my code, but following code returns no objects:

C#
foreach (SecuritySystemUser securitySystemUser in ObjectSpace.GetObjects<SecuritySystemUser>()) { CopyUser(securitySystemUser); } foreach (SecuritySystemRole securitySystemRole in ObjectSpace.GetObjects<SecuritySystemRole>()) { CopyRole(securitySystemRole, null); }

I checked the database, old tables are still populated. Any ideas why this might be happening?

Should this code be run before or after the change to UserType and RoleType?

Regards,
Mario

Show previous comments (7)
MB MB
Mario Blatarić 8 years ago

    Hi Juan,

    I decided to write an article about migration:How to migrate DevExpress XAF SecuritySystemUser to PermissionPolicyUser

    Hopefully it gets approved soon.

    Regards,
    Mario

    J J
    JUAN JOSE VELAZQUEZ ZAYAS 8 years ago

      Thanks Mario!! it is great!!!

      MB MB
      Mario Blatarić 8 years ago

        You are welcome, Juan.

        I added some more info from this thread related to registering previous types to make article more complete.

        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.