Skip to content

tralivali1234/EF-Core-Security

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EF Core Security (Maintained by DevExpress)

About

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.

Installing EF Core Security

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.

Getting Started

The following demos and examples for the following use-cases are available in this repositiory.

OData Service

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.

DevExtreme Application

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.

.NET OData Client

The .NET C# Console demo example demonstrates how to access the OData service from C# code.

Android OData Client

The Android demo example demonstrates how to access the OData service from the Android application.

Direct Access to the Entity Framework DBContext

The .NET C# Console demo example demonstrates how to use the EF DBContext directly.

Wiki

Learn more about this project in our wiki.

About

Security system for Entity Framework Core with demos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 67.9%
  • C# 21.3%
  • JavaScript 7.0%
  • Java 2.9%
  • Other 0.9%