Questions tagged [n-tier-architecture]

N-Tier architecture refers to the architecture of an application that has at least 3 "logical" layers or parts that are separate. Each layer interacts with only the layer directly below, and has specific function that it is responsible for.

n-tier-architecture
Filter by
Sorted by
Tagged with
2 votes
1 answer
13 views

ksoap services accessing by maximum user and it crashes or not?

I want to clear my doubt.am using ksoap services and it work successfully.but if multiple user accessing at a time for example 1000+ user are accessing then it will crashes or not.in three tier ...
Mayuri's user avatar
  • 489
1 vote
2 answers
677 views

What option other than a BLL instantiating a DAL allows for unit testing in an n-tier solution without exposing DAL to the UI or BLL to DAL?

I have a layered solution as follows: UI (User Interface) BLL (Business Logic Layer) DAL (Data Access Layer) SharedEntities (A VS Project with entity POCOs only) I’d like for the BLL to have a ...
Robertcode's user avatar
0 votes
1 answer
763 views

Where do business logic methods go in a layered application using entity framework 6 with Visual Studio 2015

I am using Visual Studio 2015 with Entity Framework 6 and .NET 4.5.2. I am building a WinForms application. I have structured my application in a layered fashion as follows: Solution name is ...
Robertcode's user avatar
0 votes
1 answer
3k views

how to Pass parameter with dynamic model class in Ntier MVC c#

Firstly, My controller code is ; public ActionResult Menuler_Delete(int id) { Menuler val = general_service.getMenu(id); general_service.Delete(val); ...
Serkan's user avatar
  • 25
-2 votes
1 answer
112 views

Issue on Implementing of N-Tier Architecture in ASP.net MVC [closed]

I wanna implement correct n-tier architecture in asp.net mvc but have some problem on that [staffController]. here is my code : Domain public interface IEntity { int Id { set; get; } // all ...
Mironline's user avatar
  • 2,769
1 vote
1 answer
2k views

How do you make a layered solution's UI project resolve EF Entities without referencing the data access layer

I am working on a WinForms application which I have structured with 3 layers, each layer a separate project, as follows: Within the SampleNtierDAL project is a DalServices class which is defined as ...
Robertcode's user avatar
1 vote
0 answers
274 views

In N-Tier Architecture Which Layer Asks A Security Layer To Authenticate A Login

I am putting together a WinForms application which I would like to be based on an N-Tier design. For now I have 4 layers which are as follows: Presentation Business Data Access Security My question ...
Robertcode's user avatar
0 votes
1 answer
568 views

Architectual pattern for CLI tool

I am going to write some HTTP (REST) client in Python. This will be a Command Line Interface tool with no gui. I won't use any business logic objects, no database, just using an API to communicate ...
zenon's user avatar
  • 13
1 vote
3 answers
527 views

Where to put business (game) logic in aspnetboilerplate

I'm new to DDD (Domain Driven Design). In a traditional project I would generally make a persistence, business, and user interface layer. Now with aspnetboilerplate there is a core, application ...
Zeroprox's user avatar
0 votes
1 answer
39 views

How can I detach two dependent applications?

I have a backend platform that serves two different frontend applications. One is a very complicated application (Application A) with a small user base and lots of interdependent processes, and the ...
dasPing's user avatar
  • 351
-1 votes
1 answer
913 views

Generic repository OR stored procedures for database interaction?

As generic repositories can be use for Insert, Update, Delete etc. but it is limited only for simple Crud operations, if I want to use my generic repositories for some more complex insertion and ...
Riaz Khan's user avatar
1 vote
0 answers
100 views

How to organise a structure of n-tier app. for DI

I am new to n-tier application and I need a little help with starting and organising a structure of such applications. I have read a few articles and blogs about the advantages of this type of design ...
Celdor's user avatar
  • 2,550
0 votes
1 answer
3k views

Design Pattern or Architecture help for console app

I am working on App that does below stuff. Import records from excel file and bulk dump to the sql server database. Then I run store procedure to preform some database level checks. Then I grab ...
Amrik's user avatar
  • 456
0 votes
1 answer
98 views

3 tier-architecture of a web app when the user is offline

I want to create the high level (3-tier) architecture diagramm of a mobile app when there is connection to the internet and when not. I know that when there is connection to the web, there will be a 3 ...
Theodora Siahami's user avatar
3 votes
3 answers
530 views

ASP.NET MVC vs. nTier Separation of Concerns

with nTier architecture it is common to create a data, business, workflow and ui layer. In this setup, your data layer and business layers are separated and can be reused by other layers. In ASP.NET ...
Scott Marcus's user avatar
2 votes
2 answers
3k views

Good architecture to shift a WPF desktop application to Client Server technology

I have a working WPF application that works on a single PC. I have used SQL server database, Entity Framework to communicate with database and RDLC reporting in the application. Now the requirement ...
WAQ's user avatar
  • 2,586
2 votes
2 answers
2k views

Should my view models be with my domain entities at the core in an onion architecture?

Or should they be in the top layer (client UI)? When using a onion architecture (ASP.Net MVC) should I put my view models with all my domain entities at the core. Just like in the picture below? My ...
chuckd's user avatar
  • 14.2k
0 votes
1 answer
1k views

Entity Framework Error - Unable to determine the DbProviderFactory type for connection of type 'System.Data.EntityClient.EntityConnection'

I use Entity Framework 6.1.3 & Sql Server 2008 & VS2013 I working on Asp.net project. in my project I use 3-Tier architecture (App Project - BLL Project - DAL Project). on DAL Project I ...
Mahdi Radi's user avatar
0 votes
1 answer
117 views

In an onion architecture can layers access other layers more then one layer of separation down?

If I have an onion architecture can my top layer (view) access a layer that is two layers down (models) even if there is a serice layer in between? Or is the purpose of the onion architecture that you ...
chuckd's user avatar
  • 14.2k
5 votes
1 answer
7k views

How should I return a generic response and response code from all functions in a .NET MVC app?

I want to be able to return a generic response from function calls in the business layer of my MVC application. Most of the time I see an object create function look like this public int Create(...
codenesium's user avatar
0 votes
0 answers
288 views

Where to put entity classes in three layer architecture?

I'm required to built an application with three layer architecture. If I were to access the database in simple SQL queries, I could put domain classes in business layer and SQL queries in data layer. ...
Chathuranga Dassanayake's user avatar
0 votes
0 answers
595 views

3-Tier Architecture Logic Tier and Data Tier Interfaction

Hi I am having some trouble understanding how the data access tier and the logic tier interact within the architecture. For the record the application will be an Android exclusive social network The ...
FinalFind's user avatar
  • 131
0 votes
0 answers
260 views

How to inline edit with gridview with 3 layer architecture in ASP .Net WebForm

Does anyone have resources and links to share with me for above topic? I googled around, but Just normal inline gridview editing in WebForm, and I couldn't really apply to use for my project. I am ...
jkhaung's user avatar
  • 61
3 votes
1 answer
300 views

Where should I implement e-mail logic in N-tier application?

I'm a student working on a project with an N-tier structure (a web server application with ASP.NET). I currently have three layers: * Presentation * Business logic * Data access (communication ...
Bert Willekens's user avatar
1 vote
2 answers
1k views

On Which Tier should user authentication should exist in n-tier website

I went through different Architecture books such as this one: Microsoft Application Architecture Guide, 2nd Edition And now I am building a new n-tier website with ASP.Net MVC as Presentation layer. ...
Amr Elgarhy's user avatar
  • 67.9k
3 votes
2 answers
206 views

Where to log exceptions?

I have a multi-layered web application, layers are like below. MyApp.Models MyApp.Views MyApp.Controllers MyApp.Services MyApp.Repository.EF In this architecture i have a seperated controllers class ...
BZC's user avatar
  • 472
3 votes
1 answer
2k views

View Model place in N Tier ASP .NET MVC application

I have read this and was wondering about this. My application contains 4 Layers Web Project / UI BLL DAL (contains EF) Entity Layer I have placed VM in UI layer as of now and its a combination of ...
Mohammed Dawood Ansari's user avatar
0 votes
1 answer
515 views

Web application architecture, N-tiers, 3 tiers or multi-layer

I would like to know what is the architecture of my application. I developed a web application to automate deployment procedure that has many components: a GUI front end (HTML, CSS , JS) back end (...
Mahmoud Ksemtini's user avatar
0 votes
1 answer
4k views

How do I pass data from presentation layer to business logic layer? (ASP.NET MVC 5)

I'm creating my first web application with ASP.NET MVC 5 and want to do it the right way. I plan on creating an architecture with a Presentation Layer (MVC), a Data Access Layer (DAL), and a Business ...
Matthew's user avatar
  • 787
5 votes
2 answers
4k views

Which layer of an application should keep security logic (permissions, authorization)?

Since the most similar questions are related to ASP MVC I want to know some common right choice strategies. Lets try to decide, will it go into the business layer or sit on the service layer. ...
Mikhail Karakulov's user avatar
2 votes
0 answers
127 views

How can i resolve unitOfWork every request with Ninject

I use MVC,EF5 and three layer. (DAL,BLL,UI) I 've apply unit of work pattern to my project. And i want to resolve unit of work class every controller's request. And after execute i run commit method. ...
Yargicx's user avatar
  • 1,714
2 votes
4 answers
2k views

N tier architecture c# mvc ViewModels

Assuming i have tables like this: Users ------ UserId Email ... People ------ PersonId UserId Name Country ... With the corresponding models: public class User{ ... } public class Person{ .....
Vincent's user avatar
  • 2,083
5 votes
3 answers
12k views

How to map Entity Framework model classes with Business Layer class in n-tier architecture - ASP.NET-MVC

I am working on e-tier architecture within MVC framework (ASP.NET MVC5, Entity Framework 6). My application is divided into three sub-projects which are Business-Layer, Data-Access-Layer, Repository (...
K.Z's user avatar
  • 5,413
0 votes
1 answer
97 views

N-tier Application Data Model

I develop a ntier MVC application with .NET. I have four layer. UI layer, ServiceLayer, Business Layer and DAL. (I use EF5 for DAL) I add a project for my Entities. My projects structure as this. ...
Yargicx's user avatar
  • 1,714
24 votes
1 answer
3k views

How should I persist timestamps in SQL DB if app uses NodaTime?

I want to start using NodaTime in my application to manage times, instants and general time localization. Sometimes I persist timestamps to a SQL Server 2008 database. I had traditionally used ...
Matthew's user avatar
  • 10.4k
2 votes
3 answers
6k views

Is calling service from controller a violation of MVC?

I have seen many code references online they use services directly in the Controller. public class PersonController : Controller { public ActionResult Index(int personId) { Person ...
Mady's user avatar
  • 459
1 vote
1 answer
1k views

Repository/UnitOfWork Add throws Cannot insert the value NULL into column error

I am working on an application that GETs data from a REST API. I am parsing the json against a concrete class and then stepping through that piece to either Update or Insert (depending of if the row ...
MattV's user avatar
  • 43
1 vote
1 answer
507 views

Entity Framework ObjectContext lifetime in an n-tier project

I'm currently building a large solution for a client where code reuseability is the keyword since different types of projects (i.e. Websites, WCF services, WPF etc) should use the exact same ...
Bo Mortensen's user avatar
4 votes
1 answer
172 views

Is the following separation considered 2-tier or 3-tier architecture?

I have a web application that is deployed as follows on web hosting: Code(without separation of BLL, DAL etc) being uploaded to web hosting Database (MSSQL backup file) being uploaded to web hosting ...
vincentsty's user avatar
  • 3,105
0 votes
1 answer
756 views

N-Tier Architecture Layer Naming Suggestions

I am looking to reorganize my backend n-tier application to break up the layers so that they are more independent and testable. I will have the following layers. Entities Data Access Layer ...
mflair2000's user avatar
0 votes
2 answers
665 views

3-Tier Architecture Data Access

I am looking into developing a Social Network application for an Android device, and I will be using a RESTful web service that sits in the logic layer of an n-tier architecture. Now I am getting a ...
FinalFind's user avatar
  • 131
0 votes
1 answer
812 views

Call function when child dialog window is closed in Qt

After trying a multitude of combinations I'm unable to get Qt to call a function in my main window dialog when another dialog is closed. I looked and tried a few things with signal and slot but to no ...
Keyboard embossed forhead's user avatar
0 votes
1 answer
130 views

How do I print out error message if I enter an input that doesn't exist in Database? N-Tier

A quick brief explanation on my question: I want to my program to print out an error message without crashing the program if I enter a number that doesn't exist in my program's Database. Here is my ...
CR9191's user avatar
  • 51
2 votes
1 answer
2k views

N-Tier Application: Getting a model from Data layer to UI layer

So I'm stuck with this project that I'm working on which I'm trying to get the architecture done properly. I'm using MVC and Entity Framework, I've decided to lay out my application into layers using ...
fancycoconut's user avatar
0 votes
1 answer
534 views

Returning record inserted successfully in C# ASP.NET

In my DAL I have the following: DB.ExecuteNonQuery(DBCommand); then in my BLL I have the following: DAL.data.insertticket(a); and then in my presentation layer I have: DAL.collection cobj = new ...
PriceCheaperton's user avatar
1 vote
1 answer
61 views

Should I begin adding / converting a physical business layer to an existing project?

Just recently, our application expanded to support 4 different UIs. We have business logic that is integrated into our data layer. We do not have a physical business layer that separates our UI from ...
drizzie's user avatar
  • 3,351
0 votes
1 answer
153 views

EF 5.0 - Generated POCO's contain System.Data.Spatial.DbGeography type

I have two c# projects, one containing the edmx file (db first approach) and a second one (POCO-Project) to where the POCO's (DAO's) are generated. I want to use the classes of the poco project in the ...
Legends's user avatar
  • 22k
1 vote
4 answers
2k views

You don't understand interfaces if they're defined in the business layer and not the data access layer

Please someone help me clarify an issue I'm having with dependency inversion principle. If I have a repository in my DAL that looks like this and an corresponding interface in the DAL. I'm essentially ...
chuckd's user avatar
  • 14.2k
0 votes
0 answers
353 views

How to remove all dependencies from data access layer so I can call it from any client?

This is pulled from a stackoverflow link "The DAL should have no knowledge at all about the Business Logic Layer. It should, in theory, be able to be called from any client. For example, what if you ...
chuckd's user avatar
  • 14.2k
0 votes
1 answer
214 views

DTOs right place in a multilayered application

In a multilayered application what is the right place for DTOs (Data Transfer Objects)? There is such opinion DTO is for data storage layer to domain layer communication but inappropriate for domain ...
Mikhail Karakulov's user avatar

1
3 4
5
6 7
20