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
2 answers

Adding System.Web reference to Business Logic Layer in n-layer Architecture

I'm using TableProfileProvider to use ASP.NET profile system in an n-layer architecture. The UI layer is a web application so I have to expose the profilecommon class to be able to use profiles. Here's a simplified schema of my architecture: UI:…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
1
vote
2 answers

C# n-layer entity changes not reflected in DTO after insert

Sorry about the title, I couldn't figure out a suitable description. I have four layers: Core Layer : Contains DTO's, interfaces for services and repositories. Business Layer : Contains "services" that handle business logic. Data Access Layer :…
Starwop
  • 103
  • 2
  • 12
1
vote
2 answers

N-layer & N-tier or Layer & Tier architecture same?

Can anybody tell me what is the difference between N-Layer and N-Tier architecture.I know 3-layer architecture has 3 layers: UI, Business Logic Layer(BLL) and Data Logic Layer(Dll) But now, my question is what is N-Tier and N-Layer and what is the…
1
vote
1 answer

C# NAudio rendering a waveform ASP.net without DMO or ACM

I'm trying to draw out a waveform using ASP.net on an Azure Website (which doesn't have the ACM or DMO codecs installed), so I had to use NLayer to read the mp3 file. The code I have below works perfectly with the regular DmoMp3FrameDecompressor,…
Shiroy
  • 1,648
  • 1
  • 15
  • 22
1
vote
2 answers

Am I violating SOLID principles and n-layer, micro service architectures?

In the following example, the AccountService and ProductService are in an ASP.NET MVC app. The AccountWebAPI and ProductWebAPI are externally hosted API micro services. 1) Can I eliminate the ProductService and orchestrate the retrieving of the…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
1
vote
3 answers

Is N-layer and N-tier architecture same?

Can anybody tell me what is the difference between N-Layer and N-Tier architecture.I know 3-layer architecture has 3 layers: UI, Business Logic Layer(BLL) and Data Logic Layer(Dll) But now, my question is what is N-Tier and N-Layer and what is the…
1
vote
2 answers

Entity Framework in n-layered application - Lazy loading vs. Eager loading patterns

This questions doesn't let me sleep as it's since one year I'm trying to find a solution but... still nothing happened in my mind. Probably you can help me, because I think this is a very common issue. I've a n-layered application: presentation…
1
vote
1 answer

About N-layer architecture, where is the best place for save function?

There is a project that is developed by asp.net mvc 4 and entity framework 5. Its architecture is three-layer,there are repository ,service and UI. now there is a problem: where is invoking the save function? 1)put the save in service layer. if…
1
vote
0 answers

N Layer Message management in .net

Im developing a .NET N Layer web application. I need to display a message from something that MIGHT happen in a service layer call. This message however will not be displayed in the current view but after a redirect. Ive been searching around and im…
Fex Rex
  • 17
  • 6
1
vote
2 answers

Which Layer should test in n-layer architecture

We use n-layer architecture in our application. Suppose we use 3 layer application and use MVC pattern for Presentation Layer,Which Layer should test? How can find testability point in my application? Presentation Layer? Business Layer Data…
user1968030
1
vote
1 answer

N-Layer Architecture in C#

I'm trying to implement N-layer architecture to my project first time. I created BLL, DAL and GUI Here is in GUI XmlSettingsBLL xmlSettings = new XmlSettingsBLL(); var newDict = new NewDictionary() { StrDataSourceType = "AccessMdb",//…
ertan2002
  • 1,458
  • 1
  • 32
  • 68
1
vote
2 answers

ASP.NET Custom Exception handling from Business Layer

I'm new to OOP so I need help to understand if this is the correct way to handle it. I have a 3-Layer web project (+ DTOs) and I'm trying to understand wich is the best way to return "errors" from the Business Objects to the Presentation Layer. In…
Manight
  • 500
  • 5
  • 26
1
vote
1 answer

n-Layered Design Confusion

Can anyone provide me with a web link that shows a correct approach of n-Layered design with example source-code in VS2005 and C#? I am confused in one point, If I am creating layers like the following: UI | Business Logic | Data…
user366312
  • 16,949
  • 65
  • 235
  • 452
1
vote
1 answer

Is the dependency injection a cross-cutting concern?

I am designing an app and I am using a n-layer architecture, I have: - a presentation layer - a domain bussines layer - a data acccess layer - a cross-cutting layer Then I am trying to isolate my project from an specific DI framework, that is…
1
vote
2 answers

.net n-layer website structural advice required

I'm creating my first .net/c# website using Entity Framework as my data access layer. I've split my project into layers so that I have DataAccess, BusinessLogic, a separate BusinessObjects layer and the website itself is the UI…
dotnetnoob
  • 10,783
  • 20
  • 57
  • 103