expressappframework-devexpress-dot-expressapp-dot-security-4da71348.md
Contains values specifying the modes of processing security permissions for associations.
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Security
public enum AssociationPermissionsMode
Public Enum AssociationPermissionsMode
| 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).
|
The following properties accept/return AssociationPermissionsMode values:
These enumeration values are assigned to the SecurityStrategy.AssociationPermissionsMode property.
To set this property in an XAF Blazor app, use the following code to the Startup.cs file:
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;
})
See Also