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

SecurityStrategy.AssociationPermissionsMode Property

Specifies the mode of processing security permissions for associations.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.Security.v24.2.dll

#Declaration

[DefaultValue(AssociationPermissionsMode.Auto)]
public AssociationPermissionsMode AssociationPermissionsMode { get; set; }

#Property Value

Type Default Description
AssociationPermissionsMode Auto

An AssociationPermissionsMode value.

Available values:

Name Description
Manual

Association permissions are not resolved automatically (see How to: Manually Configure Permissions for Associated Collections and Reference Properties).

Auto

Association permissions are resolved automatically, except for the case when a criteria is involved (you should manually set permissions to both sides of the association in this instance).

ExtendedAuto

Association permissions are always resolved automatically (may cause performance issues when permissions involve criteria).

#Remarks

#ASP.NET Core Blazor and WinForms Applications (.NET)

Add the following code to the Startup.cs file:

C#
builder.Security
    .UseIntegratedMode(options => {
        options.RoleType = typeof(PermissionPolicyRole);
        options.UserType = typeof(YourSolutionName.Module.BusinessObjects.ApplicationUser);
        options.UserLoginInfoType = typeof(YourSolutionName.Module.BusinessObjects.ApplicationUserLoginInfo);
        //...
        options.Events.OnSecurityStrategyCreated += (securityStrategy) => {
            //...
            ((SecurityStrategy)securityStrategy).AssociationPermissionsMode = AssociationPermissionsMode.Manual;
        })

#Other Application Types

You can specify the AssociationPermissionsMode property value in the Application Designer by focussing the SecurityStrategy component and selecting the value in the Properties grid.

AssociationPermissionsMode

Refer to the Permissions for Associated Objects for more information about the available modes.

See Also