Skip to content

Multi-layered rental car project developed with .Net core 3.1

Notifications You must be signed in to change notification settings

okantorun/Car-Rental-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Rental System

Table of Contents

Overview

The project was developed in C# in accordance with the multi-layered architecture principle. OOP and AOP techniques were used using SOLID principles. Entity Framework was used as the ORM and CRUD operations were performed with it. MSSQL Localdb was used for database in the project.In addition, a Web API has been coded in service layer to communicate with the Front-End side of the project and other applications. I would like to tell you about the main features of the project.

Multi-layered Architecture

Layers

1-Entities Layer: It is where the classes of objects to be used throughout the program are defined. Each of the classes in this layer corresponds to a table in the database ,additionally, there are DTO (Data Transfer Object) classes that contain joins of multiple tables.
2-Business Layer: It is the layer where business rules and validation rules are controlled. When a command comes to the program, what operations it should do and which set of rules it should go through are defined here. Control stages are performed using AOP techniques.
3-Data Access Layer: It is the layer on which database connections and operations are made. Required configuration for database connection is done here. Also, operations such as data extraction, addition, deletion, and updating are encoded in this layer.
4-Core Layer: It is the part where structures, cross-cutting concerns, aspects, extensions and tools used in all projects are coded.
5-Console-UI Layer: It is the layer that appears to the user, that the user interacts with and sends commands to the program.
6-Service Layer (Web API): It is the part where the services that enable the Front-End part and other platforms to communicate with the program and perform operations are written.

Used Technologies and Techniques

  • MSSQL
  • Entity Framework
  • LINQ
  • Restful API
    • Postman(tested in this environment)
  • IoC
    • Autofac
  • Interceptor
  • AOP (Aspect Oriented Programming)
  • Generic Repository Design Pattern
  • Cross Cutting Concerns
    • Validation(Fluent Validation)
    • Security
    • Caching
    • Transaction
    • Performance
  • JWT Authentication
  • Claim
  • Extensions
  • Exception Middleware
  • Service Collection
  • Result Types
  • Error Handling
  • Validation Error Details
  • Hashing
  • Salting
  • Disposable Pattern
  • Adapter Pattern

Required Packages for Back-End

Package Name Version
Autofac 6.4.0
Autofac.Extensions.DependencyInjection 8.0.0
Autofac.Extras.DynamicProxy 6.0.1
FluentValidation 11.1.0
Microsoft.AspNetCore.Authentication.JwtBearer 3.1.12
Microsoft.AspNetCore.Http 2.2.2
Microsoft.AspNetCore.Http.Abstractions 2.2.0
Microsoft.EntityFrameworkCore.SqlServer 3.1.11
Microsoft.IdentityModel.Tokens 6.22.0
System.IdentityModel.Tokens.Jwt 6.22.0