EF Core Security (Maintained by DevExpress)
This project allows you to secure a CRUD access to data in applications based on Entity Framework Core (EF Core). With EF Core Security you can grant and deny entity-level, object-level and member-level permissions for authenticated users.
In Visual Studio, you can use the GitHub Extension for VisualStudio to clone this repository.
Most of required external assemblies are loaded from NuGet (Microsoft.EntityFrameworkCore and others). Other external assemblies are located in the EFCoreSecurity/dependencies folder.
The following demos and examples for the following use-cases are available in this repositiory.
The OData service demo is published at SecurityODataService. The service is protected. To read data from this it, use 'Admin'/'Admin' username and password to login as an administrator, or 'John'/'John' to login as restricted user. You can inspect this demo in details or create your own application to read and modify its data. See the following links:
The OData service demo souce is available at Demo ODataService.
The DevExtreme application demo is published at DevExtremeClient. At the logon screen, use 'Admin'/'Admin' username and password to login as an administrator, or 'John'/'John' to login as restricted user. This application is based on the published OData service and allows you to read and modify its data. Client-server application includes DevExtreme client application and OData service on the server side. See the EFCoreSecurityDemos/EFCoreSecurityDevExtremeDemo example to learn how build it locally.
The .NET C# Console demo example demonstrates how to access the OData service from C# code.
The Android demo example demonstrates how to access the OData service from the Android application.
The .NET C# Console demo example demonstrates how to use the EF DBContext directly.
Learn more about this project in our wiki.