DEV Community

Cover image for N-Tier Architecture in asp.net core projects.
Ahsanul Haque
Ahsanul Haque

Posted on

3 1 1 1

N-Tier Architecture in asp.net core projects.

Breaking up .NET projects into smaller pieces (N-TIER Architecture)


Today i am going to be showing you how to implement N-Tier Architecture in your asp.net core projects This is a project that i am doing to learn EntityFrameWorkCore. You can have a look at my Github

  • This is the default project directory (MVC Project)
    Image description

  • I have created different Class Library projects in the main Solution
    Image description

The WikiCoding.DataAccess folder will be used for DataContext and Data Related stuffs. Eg, migration, table creation etc.

  • I have moved the Models folder to the WikiCoding_Models folder. Image description As you can see. I am breaking the projects into smaller pieces. This is the core principle of N-Tier Architecture.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (1)

Collapse
 
ahaque98 profile image
Ahsanul Haque

Presentation tier: Wiki_Coding (Main Project)
This tier is responsible for displaying the application's user interface. It typically includes web pages, user interfaces, and other presentation-related code.

Logic tier: WikiCoding_DataAccess
This tier is responsible for processing the application's business logic. It typically includes business objects, services, and other logic-related code.

Data tier: WikiCoding_Models
This tier is responsible for storing the application's data. It typically includes a database server and other data storage components.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay