Questions tagged [n-layer]

Use this tag for questions related to the development of application using a N-Layer architecture.

Layers describe the logical groupings of the functionality and components in an application. Logical layers are merely a way of organizing your code. Typical layers include Presentation, Business and Data.

82 questions
1
vote
3 answers

EF / Automapper and n-layered architecture

The architecture for my application is structured as follows: UI (client-side) User Interface (XAML) VM (client-side) The layer for all view models. This layer works with the DTOs from the service layer. Service (server-side) Communication interface…
bitsmuggler
  • 1,689
  • 2
  • 17
  • 30
0
votes
0 answers

Dockerizing ASP.NET Core n-layer architecture and database

I am very new to docker and am confused with how to make a docker image of my project. It's an ASP.NET Core app with 4 different projects: API, Domain layer, Business Logic layer, Data Access Layer. Root folder looks like this: Root folder Each…
Telyonok
  • 3
  • 3
0
votes
0 answers

Working with more than one project in VS Code

I am developing .Net Core Web Application in Vs Code. The reason why I use Vs Code is, I am using Macbook Pro. Because of this, I preferred it. In my project I am creating N-Layer architecture. I have created different project in a folder, but not…
0
votes
0 answers

System.AggregateException with MessageHandler and IParser

I'm writting my Telegram Bot with N-layer architecture. I asked question about an access to dispose context and got an answer here. I wrote HostedService class and MessageHandler, but I got a new error, which I couldn't resolve. HostedService…
Ilya
  • 5
  • 3
0
votes
1 answer

Net Core MVC Dockeri file not working.There is no error my local project

I have net core mvc project running in layered architecture. It works fine locally but not with docker FROM mcr.microsoft.com/dotnet/sdk:5.0 as build WORKDIR /app COPY ./MyBlog.Shared/MyBlog.Shared.csproj ./MyBlog.Shared/ COPY…
0
votes
1 answer

n-layerd application and linqdatasource

Asp.net application in a n-layered architecture (better if is a DDD architecture). In the presentation layer I have a grid (let's say telerik radgrid or standard gridview) where I need to show a list of products (product is my entity). Make sense…
Andrea
  • 803
  • 1
  • 12
  • 27
0
votes
2 answers

DDD, Aggregate Root and entities in library application scenario

I'm building a library application. Let's assume that we have a requirement to let registered people in the library to borrow a book for some default period of time (4 weeks). I started to model my domain with an AggregateRoot called Loan with code…
0
votes
1 answer

3-layer architecture. EF in presentation layer

I try to create 3-layer architecture application. There are 2 class library (data access, business logic)and asp.net MVC (presentation). For DB connection I use entity framework. In DataAccess I configured DatabaseContext my connection string…
nefosfatus
  • 77
  • 5
0
votes
1 answer

problems to test the methods of my classes

I've been trying to test my classes with Jest without success. In the example, I have a method with a parameter, when I try it on playgroung it responds satisfactorily but in the tests it is giving me problems, I have seen some examples but they…
0
votes
1 answer

n-layared architecture, is it only a 3 layer thing?

I've always heard about the 3 layer approach (Presentation + Business logic + Data access) and that's the way I've always worked (adding a "4" layerif I count the database itself), but I'm wondering if this is all about layer and tier architecture…
Juan Jimenez
  • 5,812
  • 6
  • 28
  • 37
0
votes
1 answer

Azure Key Vault Connection Strings and N-Layered Design

This question relates to the following post which maybe helpful: Azure DevOps CI/CD and Separating Connection Strings from Source Control I'm currently working on an N-Layered project based off of an article by Imar Spaanjaars named ASP.NET…
RoLYroLLs
  • 3,113
  • 4
  • 38
  • 57
0
votes
1 answer

N Layer - Dependency Injection - Net Core

I'm building a solution architecture in ASP.NET Core. I reference repositories in the web project for declare dependency injection in the ConfigureServices(), is it ok for you? I think that ideal would be only reference the services project because…
0
votes
2 answers

What extra layers can there in n-layer architecture for an application?

i studying on software architecture principles. i understood that what is three layer architecture (contains Presentation-Business -Data Access). but anybody has any idea or extra layers for doing it for example someone do it by extra layers such as…
PProg
  • 77
  • 10
0
votes
4 answers

Dynamic N-Layer with ASP.NET

I'm trying to build a web application that let the administrator talk to the database through C# and add new tables and columns to fit his requirements (sort of a very simple database studio) but I'm not trying to just create some spaghetti…
Mazen Elkashef
  • 3,430
  • 6
  • 44
  • 72
0
votes
0 answers

Projects can reference classes in another projects that aren't directly referenced in .NET Core/.NET Standard

I am designing a N-tier application. The solution has 5 projects: A, B, C, D and E. The references between projects are like this: A -> B, E B -> C, E C -> D, E D -> E Even though I don't have explicit reference from A to D, I can access it without…