Code Monkey home page Code Monkey logo

securedevteam / security-doors Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 1.0 47.75 MB

A set of applications and libraries developed on the .NET 5. The main task of which is to control and account for the passage of people or employees through door controllers by using cards.

License: MIT License

C# 89.52% HTML 9.00% CSS 0.81% JavaScript 0.11% TSQL 0.56%
ef-core specification-pattern xunit-tests asp-net-5 console-application resources automapper pdf-generation asp-net-identity serilog

security-doors's Introduction

Security Doors

.NET

The developed set of applications is as close as possible to the IT sphere. The main idea is the transition of people or employees of a certain organization through door controllers using cards of various levels. These applications have a huge number of possibilities: from creating objects (Role, Employee and etc.) to managing all the data in the database. The main application interface is implemented as a web application (MVC) that allows you to log in and use the application in a specific role: administrator, employee and etc. Helper applications are designed as console applications and WebAPI. Registration of door actions occurs through the console application and sends request to the WebAPI, which checks the input data, performs the operation and sends response.

Application features

  1. Main web application (MVC) delimited by specific roles;
  2. Web application (WebAPI) for register door actions;
  3. Console application for interacting with WebAPI for sending door actions;
  4. Console application for database seeding;
  5. Registration with sending email letters to confirm;

Built With

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

security-doors's People

Contributors

borsuk7 avatar mikhailmasny avatar mrsbkz avatar nishikava avatar s207883 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

metzen227

security-doors's Issues

ошибка при обновление сущности

Microsoft.EntityFrameworkCore.DbUpdateException
HResult=0x80131500
Message=An error occurred while updating the entries. See the inner exception for details.
Source=Microsoft.EntityFrameworkCore.Relational
StackTrace:
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(DbContext _, ValueTuple2 parameters) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList`1 entriesToSave)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
at SecurityDoors.BusinessLogicLayer.Implementations.PersonRepository.Save(Person item) in C:\Users\Fedechkin Alexey\Source\Repos\Security-Doors\SecurityDoors.BusinessLogicLayer\Implementations\PersonRepository.cs:line 74
at SecurityDoors.RemoteControl.Database.AddPerson(Person person) in C:\Users\Fedechkin Alexey\Source\Repos\Security-Doors\SecurityDoors.RemoteControl\Database.cs:line 36
at SecurityDoors.RemoteControl.Command.addPerson() in C:\Users\Fedechkin Alexey\Source\Repos\Security-Doors\SecurityDoors.RemoteControl\cli\Command.cs:line 72
at SecurityDoors.RemoteControl.cli.Cli.run() in C:\Users\Fedechkin Alexey\Source\Repos\Security-Doors\SecurityDoors.RemoteControl\cli\Cli.cs:line 32
at SecurityDoors.RemoteControl.Program.Main(String[] args) in C:\Users\Fedechkin Alexey\Source\Repos\Security-Doors\SecurityDoors.RemoteControl\Program.cs:line 11

Inner Exception 1:
SqlException: Cannot insert explicit value for identity column in table 'Cards' when IDENTITY_INSERT is set to OFF.

ошибка возникает когда я пытаюсь сохранить Person у которого в качестве значения поля Card задан вывод метода GetCardById с параметров -1

.NET Core 2.2

Обновить решение до .NET Core 2.2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.