https://github.com/saba-burduli/comicburduli-asp.net-core-web-api-using-entity-framework-ef-
I make Web API using ASP.NET core , i also using Entity Framework (EF) .I use Web Api tier system ofc :1,Presentation Layer (UI/Web API): Handles user interactions,2.Business Logic Layer (Service Layer): Contains business rules and validation.3.Data Access Layer (Repository Pattern): Abstracts database interactions.4.Database Layer: storage (MSSQL)
https://github.com/saba-burduli/comicburduli-asp.net-core-web-api-using-entity-framework-ef-
asp-net-core enityframework microsoft mssql orm orm-framework sql
Last synced: about 1 month ago
JSON representation
I make Web API using ASP.NET core , i also using Entity Framework (EF) .I use Web Api tier system ofc :1,Presentation Layer (UI/Web API): Handles user interactions,2.Business Logic Layer (Service Layer): Contains business rules and validation.3.Data Access Layer (Repository Pattern): Abstracts database interactions.4.Database Layer: storage (MSSQL)
- Host: GitHub
- URL: https://github.com/saba-burduli/comicburduli-asp.net-core-web-api-using-entity-framework-ef-
- Owner: Saba-Burduli
- Created: 2025-02-11T16:02:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-09T19:29:35.000Z (over 1 year ago)
- Last Synced: 2025-10-26T03:16:36.589Z (8 months ago)
- Topics: asp-net-core, enityframework, microsoft, mssql, orm, orm-framework, sql
- Language: C#
- Homepage:
- Size: 36.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Here’s a quick breakdown of what I’ve done:
# Sales Management System
## Description
This is a **Sales Management System** built using **ASP.NET Web API** and **Entity Framework**. It provides RESTful APIs to manage sales, products, and customers. The system is designed to streamline sales operations and provide a centralized platform for managing sales data.

## Features
- **CRUD Operations**: Create, Read, Update, and Delete sales, products, and customers.
- **RESTful API**: Fully functional API endpoints for managing data.
- **Database Integration**: Uses **MSSQL** for data storage.
- **Entity Framework**: ORM for database operations and migrations.
- **Swagger Documentation**: Interactive API documentation.
Key Roles of ASP.NET Web API in the Project:
Handling HTTP Requests:
The API processes client requests using different HTTP methods (GET, POST, PUT, DELETE) to perform CRUD operations efficiently.
Controller-Based Architecture:
The system is designed with multiple controllers, each responsible for specific entities (e.g., SalesController, CustomerController, ProductController).
This separation ensures maintainability, scalability, and modularity in the application.
Business Logic Implementation:
Controllers handle business logic, ensuring proper validation and data processing before interacting with the database.
Custom logic can be applied for features like discounts, tax calculations, or stock management.
Entity Framework Integration:
ASP.NET Web API interacts with Entity Framework (EF) to manage database operations seamlessly.
EF simplifies querying, updating, and maintaining database entities using MSSQL.
Security & Authentication:
The API can be secured using authentication mechanisms like JWT (JSON Web Tokens) or OAuth to protect sensitive sales data.
Scalability & Extensibility:
The API is designed to support future enhancements, such as integrating third-party services, mobile apps, or external reporting tools.
RESTful Design for Flexibility:
Following REST principles ensures that the system can be consumed by any client (e.g., web apps, mobile apps, or third-party services).
Steps to Improve and Finalize My Project
**1. Organize Code**
project follows a clean architecture (e.g., Repository Pattern or Service Layer Pattern).
Separate concerns like:
Controllers: Handle HTTP requests.
Services: Business logic.
Repositories: Database operations.
Models/Entities: Database schema.
**Example structure:**
SalesManagementAPI/
├── Controllers/
├── Services/
├── Repositories/
├── Models/
├── Migrations/
├── appsettings.json
├── Program.cs
└── README.md
**2. Entity Framework Migrations**
migrations are up-to-date and applied to the database:
dotnet ef migrations add
dotnet ef database update
Verify that your database schema matches your entities.
**3. API Documentation**
Use Swagger to document your API endpoints.
Add Swagger to your project:
builder.Services.AddSwaggerGen();
app.UseSwagger();
app.UseSwaggerUI();
Access Swagger UI at /swagger when running your API.
## Technologies Used
- **Backend**: ASP.NET Web API
- **Database**: MSSQL
- **ORM**: Entity Framework Core
- **Tools**: Visual Studio, Swagger, Git
- **Languages**: C#, SQL
---
## Setup Instructions
Follow these steps to set up and run the project locally:
### Prerequisites
- [.NET SDK](https://dotnet.microsoft.com/download) (version 6.0 or higher)
- [Visual Studio](https://visualstudio.microsoft.com/) or [Visual Studio Code](https://code.visualstudio.com/)
- [MSSQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-downloads)
📥 If you want to learn more about This Project you can actually contact me on Mail : **sabagg790@gmail.com**