Back to Devexpress

SecuredEFCoreObjectSpaceProvider<TDbContext>.CreateNonsecuredObjectSpace() Method

expressappframework-devexpress-dot-entityframeworkcore-dot-security-dot-securedefcoreobjectspaceprovider-1-c88fb98c.md

latest2.6 KB
Original Source

SecuredEFCoreObjectSpaceProvider<TDbContext>.CreateNonsecuredObjectSpace() Method

Creates a SecuredEFCoreObjectSpace instance that an application uses when a user tries to log on.

Namespace : DevExpress.EntityFrameworkCore.Security

Assembly : DevExpress.EntityFrameworkCore.Security.v25.2.dll

NuGet Package : DevExpress.ExpressApp.EFCore

Declaration

csharp
public IObjectSpace CreateNonsecuredObjectSpace()
vb
Public Function CreateNonsecuredObjectSpace As IObjectSpace

Returns

TypeDescription
IObjectSpace

A SecuredEFCoreObjectSpace instance that an application uses when a user tries to log on.

|

Remarks

Note the following when you operate with a non-secured Object Space:

  • The non-secured Object Space ignores security permissions and provides access to all data. This means that the current user can modify data regardless of assigned roles.
  • If you need to interact with objects from the main (secured) and non-secured Object Spaces, use the GetObject(Object) method to copy the object from one Object Space to another.

Implements

CreateNonsecuredObjectSpace()

See Also

Change the Current User Role in Code

SecuredEFCoreObjectSpaceProvider<TDbContext> Class

SecuredEFCoreObjectSpaceProvider<TDbContext> Members

DevExpress.EntityFrameworkCore.Security Namespace