Skip to content

This repository contains an ASP.NET Core 6 MVC N-Tier Architecture project template designed for creating scalable web applications. The architecture consists of Core, Infrastructure, and WebApp projects, ensuring a clear separation of concerns. The Core holds business logic, Infrastructure manages data access, and WebApp manages the user interface

Notifications You must be signed in to change notification settings

arahimx/ASP.NET-Core-6-MVC-N-Tier-Architecture-Project-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core 6 MVC N-Tier Architecture Project Template

This repository contains an ASP.NET Core 6 MVC N-Tier Architecture project template that serves as a robust foundation for future web applications. The architecture is structured into distinct layers for better separation of concerns and improved scalability.

Features:

  • N-Tier Structure: Organized into Core, Infrastructure, and WebApp projects for better modularity and maintainability.
  • ASP.NET Core 6 MVC: Utilizes the latest version of ASP.NET Core MVC for web application development.
  • Entity Framework Core: Employs Entity Framework Core for seamless database interactions.
  • SQL Database: Utilizes SQL Server as the preferred database solution.

Project Structure:

Core

  • Contains core business logic, entities, interfaces, and services.
  • Ensures the centralization of essential functionalities.

Infrastructure

  • Houses implementation details, such as data access, configurations, and external integrations.
  • Incorporates Entity Framework Core for database access.

WebApp

  • Serves as the presentation layer utilizing ASP.NET Core MVC.
  • Handles user interface, controllers, views, and interactions.

Getting Started:

Prerequisites:

Installation:

1. Clone the Repository:

git clone https://github.com/arahimx/ASP.NET-Core-6-MVC-N-Tier-Architecture-Project-Template.git

2. Open in Visual Studio:

  • Launch Visual Studio.
  • Select "Open a project or solution."
  • Navigate to the cloned directory and open the solution file (dotNetCoreTemplate.sln).

3. Configure the database connection string in the appsettings.json file.

  • Open the appsettings.json file in the WebApp project.
  • Update the connection string under SQLConnection to point to your SQL Server instance.

4. Use Entity Framework Code-First approach to generate the database schema.

  • Open the Package Manager Console in Visual Studio.
  • Select the Infrastructure project as the default project.
  • Run the following commands to create the database:
Update-Database
  • This command will apply any pending migrations and create the necessary tables in the configured database.

Usage:

Template Customization:

  • Modify and expand the Core, Infrastructure, and WebApp projects to suit your specific application requirements.

Development:

  • Use this project as a starting point for building scalable and maintainable ASP.NET Core 6 MVC applications.

Enhancements:

  • Use this project as a starting point for building scalable and maintainable ASP.NET Core 6 MVC applications.

Contribution:

  • Contributions are encouraged! If you have any enhancements, bug fixes, or feature additions, feel free to fork this repository, make changes, and submit a pull request.
  • Extend functionality, add features, or integrate additional libraries based on project needs.

License:

This project is licensed under the MIT License.


About

This repository contains an ASP.NET Core 6 MVC N-Tier Architecture project template designed for creating scalable web applications. The architecture consists of Core, Infrastructure, and WebApp projects, ensuring a clear separation of concerns. The Core holds business logic, Infrastructure manages data access, and WebApp manages the user interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages