3-tier

How many of you do 3-tier design?

3-Tier design has been my standard design philosophy for years for database driven applications, and it has never failed me. For those who practice it, describe your layers. I've found that many people muddle up the business tier and the data access tier, making it more like a 2.5-Tier design. I prefer to move the data tier almost enti...

Databinding ASP.net DropDownList with Entity Framework

I'm trying to bind an ASP.net DropDownList to the results of an entity framework query, while still maintaining multi-tier separation. (i.e. I don't want my UI code to contain query details, nor my Data Layer code to have UI dependencies.) My code-behind in the Page_Load event handler looks like this: IEnumerable<Lookup> Types...

Need help in login authentication using asp.net

Hello all, Simple way i am able to authenticate login page. How can i do that authentication in 3 tier architecture? please somebody send me the code that what should be in DAL,BAL,and GUI layers? Here is my simple code: Web.config: <authentication mode="form"> <form loginurl="Login.aspx"> <credential password Format="clea...

Three-Tier architecture and LINQ to Entities

Hello all, For a couple of years, I've been using the three-tier architecture (Presentation, Logic and Data Layer) to write applications. Usually, I am using tools such as .netTiers to generate the data layer and partially the logic layer. Everything is well defined and I love it. I am now constraint to use LINQ to Entites (it appears...

3-tiers pattern and large amounts of data

Here is my situation: I am trying to follow as hard as I can the 3-tier pattern (i.e. Presentation, Business and Data layer). When I need data from the DB, the Business layer calls the Data layer which returns the information. The Data layer never return a SqlDataReader or DataTable object, but often an enumeration of custom object known...

LINQ with 3 Tier

Currently I am working on the design of my degree project. Some days ago I began studying LINQ. I found it was interesting and planned to use it in my project but now I am getting confused at some point. When I add the LINQ to SQL class it auto generates entities classes against each table in database. Suppose I have two tables in data...

BLL errors best practise

What is the best practise for returning an error of a business rule in a BLL? SHould I just raise exceptions and catch them in the presentation layer, shoudl I return some kind of object that holds any exception type info? ...

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 example a Category object representing the Category table in my database). I have defined ...

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 this? ...

I need some clarification on the MVC architecture and the three-tier architecture...

Hi, I've been reading the book Pro ASP NET MVC Framework and I'm getting really confused with a lot of things. I've been trying to do some research but I'm finding that with so many different approaches and concepts being thrown at me, it's just making things worse.So I have a few questions: I know MVC is supposed to split the functio...

How do I reach the middle tier using the memship class?

I have a 3-tier ASP.NET 2.0 app. I want to use the Membership.ValidateUser method of the membership class using the credentialls added with the login control. As stupid as it seems, I can't figure out how to have the ValidateUser control call anything but the db specified in the web.config. What I need is it to call down to the middle ti...

About 3-tier architecture and symfony framework

Both of them are based from mvc. But in 3-tier architecture,storage layer is a separate layer, while in symfony framework,database(storage) level is included in model layer. Why are they different? ...

using JDBC Connection from presentation tier in 2-tier and 3-tier applications

I am writing a module that will be used in different applications (2-tiers and 3-tiers). I'll need to connect to a DB. so, I made the module requires a java.sql.Connection object as a parameter when used with a 2-tier application. there's no problem there. the problem i'm facing is that in case of a 3-tier application, the module will b...

How to improve speed of 3-tier application?

My friend use to developed 2-tier application which application connect directly to database, now he need to move to 3-tier application but he has issue about speed of the application. This new application need to generate a lot of reports at client side so he worried about speed of this process which need to call to business layer to qu...

Implementing Business Logic in 3 Tier Architecture

I have a web application I am working on and so far I have the data access layer finished. Each table has its own class that creates objects of rows of that table, so each object represents a row of a table. The functions each object has is basically CRUD operations. The question I have is, what is the best way to implement the business...

How-To Deal with Multi-Criteria Queries in 3-Tier Architecture

Assuming a basic 3-Tier application (UI-Service-Data Access) with a total abstraction of Data Access layer (SQL, Xml ...) The UI applications are composed with Datagrids with multi criteria filters, find etc.. So how-to deal with mutli-criteria queries in this architecture without having to create multiple service methods with all poss...

Business layer, data layer, where to put queries?

I have a data access layer that has separate classes for each table in the database. Each class makes objects that reference a row in the table, they have create, update, delete, and fetch functions. They all extend a DBObj class. My question is, say I want to write a query to SELECT * FROM table, and have that in a function. Where is th...

Sample J2EE projects using J2EE design patterns

For .Net there are lots of projects that Microsoft/others provide via which one can learn how patterns etc. are implemented in real life projects. I am looking for ones for J2EE (apart from the samples that Sun provides on:http://java.sun.com/javaee/reference/code/). Am looking for more complex ones. May be using JSF/Spring/Struts ...

MVC - is it just a 3 tier model?

Just began researching mvc, and am not sure I grasp it yet. From what I gather it seems like an implementation of a 3 tier solution ie Model corresponds to DAL, Controller to business logic layer, and View as Presentation layer. Am I way off base here? ...

Best Approach to handle Data Concurrency In 3-Tier Application

Hi, What is the best approach to handle Data Concurrency issues in a 3 layered Application (WCF + LinqToSql or EF) with detached entities or DTOs ? Thanks. ...