n-tier

Is this 4-tier architecture good?(Exception handling is important for me :)

I have this layers in my application: Entities Database (with Entities reference) Business (with database and Entities references) User Interface (with Business and Entities references) Here is an example of my codes: UserDAL class in database layer: public class UsersDal { databaseDataContext db; public UsersDal() ...

how to write a logical n-tier windows desktop application for both a physical 1-tier AND physical 3-tier deployment?

Hi - I'm working on a unique windows desktop application that requires both a standalone and distributed deployment mode. In standalone mode the entire program will run on a single desktop machine. In distributed mode there will be several thin clients running on desktop machines that will communicate with an app server (IIS) and databa...

Business Objects and Data Layer

Hello, This site has provided me with many useful answers, however after a hours search I haven't found anything that specifically answers my needs. So here goes... The company I'm working for is in the process of designing a new Business Objects Layer and a Data Access Layer - these will reside in separate assemblies. The problem is...

Where should connection strings be stored in a n-tier asp.net application

Folks, I have an ASP.NET project which is pretty n-tier, by namespace, but I need to separate into three projects: Data Layer, Middle Tier and Front End. I am doing this because... A) It seems the right thing to do, and B) I am having all sorts of problems running unit tests for ASP.NET hosted assemblies. Anyway, my question is, w...

DDD vs N-Tier (3-Tier) Architecture

I have been practicing DDD for a while now with the 4 distinct layers: Domain, Presentation, Application, and Infrastructure. Recently, I introduced a friend of mine to the DDD concept and he thought it introduced an unnecessary layer of complexity (specifically targeting interfaces and IoC). Usually, its at this point, I explain the b...

WCF and n-tier architecture and serialization performance

When working with 5-tier architecture (front-end => interface tier => business tier => database tier => database) using WCF service as the interface tier, having the client applications calling it's methods, should I use also WCF service for the business and database tiers? I ask because of all the serialization / deserialization that wi...

How to solve Optimistic Concurrency Updates in c# .NET N-tier applications?

Hy everyone. In c# .net VS 2008 I'm developing an N-tier CRM framework solution and when it's done I want to share it. The architecture is based on: Data Access Layer, Entity Framework, Bussines Logic Layer, WCF and finally the presentation layer (win forms). Somewhere I had read, that more than 2 tier layers are problematic, beacus...

How to pass Current User Information to all Layers in DDD

Hello, Similar questions have been asked before but not quite the same (unless I missed it) I want to pass IUserInfo class instance through my Service, Domain , Domain Events, Domain Event Handlers... Whats is the best way to do it. Should I Inject it using IoC by registering it against instance of Httpcontext.Current.session["Cu...

How can I mimic a multi-tiered menuing system using Java enums?

I need to accomplish the following (this is a simplified version): enum Animals{ enum Cats{tabby("some value"), siamese("some value")}, enum Dogs{poodle("some value"), dachsund("some value")}, enum Birds{canary("some value"), parrot("some value")} private String someValue = ""; private ShopByCategory(String someValue) { th...

N-tier question: Where do you do the variable casting?

Our UI exposes user input as strings. All of them, including dates and numbers, are coming as strings. The question is: is it better to convert these to the appropriate type (datetime, int, etc) in the UI (and then pass converted var to the BLL methods), or in the BLL itself? ...

Swing rich client in a multi tier context

We're in the analysis/early design phase of a future Swing application where persistance is provided by a database (probably an alternative between Oracle and mySql depending on the customer's money). Basically, the application will feature two kinds of modules : One "admin" subsystem to feed and maintain a set of referential data ; X...

WCF for web sites?

Hello community. I'm working For my company on a .NET N-tier architecture and have several questions. Basics: the project should be split into layers and should not allow tues develop as easy as possible additional modules for modules like logging, ratings, user management etc. Environment: VS2010, EF4, SQL Server 2008, LinqToSql, c# ...