.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

EFCachedRequestSecurityAdapter Class

A Security Adapter used in Entity Framework based applications with the UI-level security.

Namespace: DevExpress.ExpressApp.Security.EF.Adapters

Assembly: DevExpress.ExpressApp.Security.EF.v20.2.dll


public class EFCachedRequestSecurityAdapter :


To enable the EFCachedRequestSecurityAdapter Security Adapter, choose Entity Framework and enable Standard or Active Directory authentication in the Solution Wizard, or pass the EFCachedRequestSecurityAdapterProvider object to the staticIsGrantedAdapter.Enable method.

using DevExpress.ExpressApp.Security.Adapters;
using DevExpress.ExpressApp.Security.EF.Adapters;
// ...
IsGrantedAdapter.Enable(new EFCachedRequestSecurityAdapterProvider());

You can call this static method from any place of your code which is executed before a user is logged on, e.g.:

  • in the constructor of your platform-agnostic module located in the Module.cs (Module.vb) file;
  • in the constructor of your application located in the WinApplication.cs (WinApplication.vb) or WebApplication.cs (WebApplication.vb) file;
  • in the Main method of the WinForms application located in the Program.cs (Program.vb) file, before the WinApplication.Start call;
  • in the Application_Start method of the ASP.NET application located in the Global.asax.cs (Global.asax.vb) file, before the WebApplication.Start call.


See Also