Questions tagged [3-tier]

For issues relating to setting up and utilizing a 3-tier architecture.

3-tier is a software architecture in which the presentation layer, business access layer and data access layer are developed and maintained as independent modules, sometimes on separate platforms.

370 questions
1
vote
1 answer

C++ Builder Datasnap How to access Server Object List

I am making a 3 tier application in c++ builder XE3 with Datasnaps and I am working on the middle tier part for now. but I have one problem, the server needs to show the information from the client too. lets say if the client pushes two ints say 5…
user1690595
1
vote
1 answer

How do I handle name conflicts mapping from business layer to presentation layer?

In a N-tier application, my website connects to a web reference to access business layer logic and to get business layer DTOs. For example, the BL may provide a definition for a Car: public class Car() { public string Make { get; set; } …
charles.55
  • 15
  • 3
1
vote
4 answers

What is the right return value for a LINQ join method?

I am working on a 3-Tier application. Also I am using LINQ to SQL for data access. The DataLayer has a function which returns a table of customers: public Table getCustomers() { DataContext context = new DataContext(); …
Prot
  • 147
  • 1
  • 6
1
vote
1 answer

MVC design pattern for the Presentation Layer in 3 layer architecture

I currently have a web application that is based upon a 3 Tier architecture. I wish to change my Presentation layer from using Web Forms to MVC4. Now I have done some research and from what I read I understood that the View represents the .aspx of…
1
vote
3 answers

Where do I create error log function in asp.net?

I am using 3 tier architecture in asp.net, I want to put function "ErrorLog()" to log errors, where should I put in my structure?
Chirag Khatsuriya
  • 635
  • 14
  • 27
1
vote
1 answer

ViewModel location when doing CQRS

Suppose you have a layered project divided into the Presentation Layer, the Business Layer and the Data Access Layer. If you were using CQRS, you would be doing queries directly from the Data Access Layer into the Presentation Layer and bypassing…
devanalyst
  • 1,348
  • 4
  • 28
  • 55
1
vote
1 answer

Java-EE6: How to design @Entity passing between tiers?

I am currently working on a 3-tier application with Java-EE6 (GlassFish 3.1.2, MySQL Server 5.1 and Netbeans 7.1.1). The project currently consists of 3 projects: Enterprise Application / EJB's: facades to control entities on the database Java…
salocinx
  • 3,715
  • 8
  • 61
  • 110
1
vote
4 answers

Presentation layer referencing data layer

I have a 3-tier .NET 2.0 app. The presentation layer references the middle tier. The middle tier references the database layer. For some reason, when I compile, the dll's for the data layer appear in the bin of the presentation layer. How do I stop…
Donde
0
votes
6 answers

Returning data from the business layer to the presentation layer

I am developing an ASP.NET 2.0 website. I have created data access and business logic layers. Now in the presentation layer I am returning data from the business layer as a dataset. My question is whether to use a dataset or object collection (for…
Zara_me
  • 268
  • 3
  • 17
0
votes
1 answer

what to use for model class in 3 tier struts 2 architecture?

I am not sure what class to use for model in this 3 tier architecture with struts 2 as my MVC. Use case: Retrieve Destination (city) with a given name. Architecture: Struts 2 MVC (Action) -> Service -> DestinationDAO Struts 2: View <---> Action (and…
brainydexter
  • 19,826
  • 28
  • 77
  • 115
0
votes
1 answer

How do I use abstract classes in a 3-tier solution?

My immediate issue is that currently I have a 3 tier solution (Presentation.aspx.vb calls BusinessLayer.vb which calls DataAccessLayer.vb). However, I want to make BusinessLayer and DataAccessLayer.vb abstract classes because several Webforms will…
dotnetN00b
  • 5,021
  • 13
  • 62
  • 95
0
votes
1 answer

ASP.Net Linq to Entities: Web Config connection string when used 3-tier architecture

I have been having intermittent trouble with data access so I'm rebuilding my project. I have a 3-tiere architecture using Linq to Entities with my App_Data folder with my database in by DATA (DL) layer. The only connection string to the data is…
Susan
  • 1,822
  • 8
  • 47
  • 69
0
votes
4 answers

how to bind dropdown in 3-tier architecture

how the dropdown needs to be bound in professinal way? Does DropDown component need to be passed to BAL(business access layer)? Please provide some code snippet and reference links..
techBeginner
  • 3,792
  • 11
  • 43
  • 59
0
votes
0 answers
0
votes
0 answers

Handling nested objects in a 3-tier REST API

I'm currently developing a new 3-tier REST API for our company. For this I created data object which represent the data in the database and serviceobjects which represent complex objects. My data object is constructed like this: public class…
Mekroebo
  • 352
  • 4
  • 11