Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PermissionPolicyRole Class

A security role that supports the Allow/Deny Permission Policies.

Namespace: DevExpress.Persistent.BaseImpl.EF.PermissionPolicy

Assembly: DevExpress.Persistent.BaseImpl.EFCore.v24.2.dll

#Declaration

[ImageName("BO_Role")]
public class PermissionPolicyRole :
    PermissionPolicyRoleBase,
    IPermissionPolicyRoleWithUsers,
    ICanInitializeRole
[ImageName("BO_Role")]
public class PermissionPolicyRole :
    PermissionPolicyRoleBase,
    IPermissionPolicyRoleWithUsers,
    ICanInitializeRole,
    IObjectSpaceLink

#Remarks

In XAF applications, permissions are not assigned to a user directly. Users have roles, which in turn are characterized by a permission set. So, each user has one or more roles that determine what actions can be performed. The list of users associated with the current role is exposed via the PermissionPolicyRole.Users property.

Refer to the How to: Implement Custom Security Objects (Users, Roles, Operation Permissions) topic for an example of how to implement a custom Role.

Tip

You can use extension methods declared in the static PermissionSettingHelper class with object instances of the PermissionPolicyRole type. Call these extension methods from the ModuleUpdater.UpdateDatabaseAfterUpdateSchema method implemented in the Updater.cs (Updater.vb) file to easily configure predefined permissions in code.

#Inheritance

#Inheritance

Object
PermissionPolicyRoleBase
PermissionPolicyRole
See Also