n-tier

Where should my models live? Web tier or Data tier? (MVC + NHibernate)

I am setting up an n-tier application with MVC, Ninject, and NHibernate (my first using these technologies). For clarity's sake, the tiers are a "Data" tier, a "Services" tier, and a "Web" tier (all are separate projects). With MVC, you have your models that are in the "Models" folder. It seems necessary to put my models here to create...

Datasnap : Is there a way to detect connection loss globally ?

Hi everybody, I'm looking to detect local connection loss. Is there a mean to do that, as with the events on the Corelabs components ? Thanks EDIT: Sorry, i'm going to try to be more specific: I'm currently designing a protoype using datasnap 2009. So i've got a thin client, a stateless server app and a database server. What i would ...

n-tier design, lookup tables, and custom entities

Hello, In an n-tiered application where you are using custom entities, how do you find yourself handling data needed from lookup tables? Do you create entities for each of these lookup tables or employ some other strategy? For example. I have a "Ratings" lookup table that will be used to populate a dropdownlist. Would you create a ...

What's the best way to structure a project ?

Hi, I was wondering about how I should structured my projects. We have some projects that are (re)use in other projects. I mean, our data project and model project are use in one-to-many other projects. What I really what to know is how to structure this type of project, what the best way to name it ? In a standard 3-tier applicatio...

What type of object should I be binding to my WPF form in an n-tier app?

I am currently working on a small N-Tier application in C# which uses Linq-to-Entities (SQL Express 2005 for the DB) and WPF and I am wondering what type of data collection my business logic layer should be supplying to the user interface. Are there downsides (performance, validation etc) to binding form objects like datagridviews to an...

MVP/MVC vs traditional n-tier approach for winform apps.

We have a large suite of apps, most are C# 1.1, but at least 10 major ones are in VB6. We are undertaking a project to bring up the VB6 apps to .NET 3.5. All the c# 1.1 apps are written using a traditional n-Tier approach. There isn't really any architecture/separation to the UI layer. Most of the code just responds to events and g...

Does n tier architecture break OO concept of encapsulation

I have an n tier application with presentation layer, business layer, DAL and business objects layer. Separating the objects and the operation written on the objects break the object oriented concept of encapsulation. ...

Populate large data from database.

I have develop 3-tier application and I have issue about populate data from database. My application has some window that query large data from database and this process take a very long time. (My client is so far from server and connection between it is 128 KBS) Then I have think for the solution to solving this problem. The solution is...

n-Tier Architecture Feedback Needed

I started my website, like stackoverflow, with a little technical debt that I'm trying to pay off. Being a contract developer, I've been in many places and see many different methods of achieving this result, but the way I'm going is.. Presentation (web) Business Layer (old fashioned entity classes and BL layer) Data Layer (DA classe...

Layering a WCF Service the right way ...

My question is more of an architectural nature, less involved with the actual implementation. I have build an API based on WCF, but can't really decide on how to separate the PL from the BL. I have made my service thin, so that it holds only a minimum of implementation, something like: public TagItemResponse TagItem(TagItemRequest requ...

What do you think is an example of a well structured n-tier .Net application?

In the search for resources to become a better developer, I am looking for good examples of how to structure the code in n-tier applications. Like... What does the business object do and look, how does it interface with the data access layer etc. How does the UI interface the business layer, and does it interface the DAL directly. Do ...

MVC Vs n-tier architecture

Hi I was wondering what exactly is the difference between MVC(which is an architectural pattern) and an n-tier architecture for an application. I searched for it but couldn't find a simple explanation. May be I am a bit naive on MVC concepts, so if anyone can explain the difference then it would be great. cheers ...

Error Handling in 3 layered architecture

How do I implement error handling elegantly? For example, my data access layer can potentially throw 2 types of errors: 1) not authorized access, in which case the page should hide everything and just show the error message 2) errors that inform the user that something like this already exists in the database (say name not unique - for e...

N-Tiered LinqToSql Question

Hello. I am hoping you can help. I am developing a tiered website using Linq to Sql. I created a new class(or object) in DBML designer called memberState. This object is not an actual table in the database. I have this method in my middle layer: public override IEnumerable(memberState) GetMembersByState(string @state) { using (Bulle...

How to architect this ASP.NET n-tier solution?

I have a problem trying to layout my VS solution and I would like some suggestions, please. Currently, my solution layout looks like the following project:- Foo.Models Foo.Repositories Foo.Services Foo.Web (an ASP.NET MVC application) my website (Foo.Web) calls various methods on the Foo.Services namespace. The idea here is that the ...

Implementing CAPCHAs into a n-tier arcitechture?

Hi all I got a 3-tier framework, that looks something like this: Web-tier: Presentation and the likes Core-tier: Entities, procedures, business logic Data-tier: DAL'ing Now, should my CAPTCHA's go into the web-tier? I'm thinking of 2 levels of validation: Image based CAPTCHA and a SMS-based CAPTCHA. The image based one will obviousl...

Jumping into N-Tier architecture with WCF?

I work for a large state government agency that is a tad behind the times. Our skill sets are outdated and budgetary freezes prevent any training or hiring of new employees/consultants (firing people is also impossible). Designing business objects, implementing design patterns, establishing code libraries and services, unit testing, so...

3-Tier .NET applications resources

Hi, A friend of mine doesn't have much experience on 3-Tier applications design and development and he would like to broaden his knowledge on this subject. Can you point me to good online resources or books on it? It would be great if they started from the principles. I was thinking of this tutorial as a good starting point. What resou...

Architectural question for tier .Net Development

Hi everyone i'm pretty new to the tiered development process. I'm currently developing an app and i have some basic questions regarding the best practices / architectural questions with todays technology. I'm going to be using WCF as the service layer. Note i'm trying to decouple things as much as possible. I don't want anything in the u...

Entity Framework, WCF & updates

I have created an n-tier solution where I am retrieving related data from a WCF service, updating it within a Windows Forms application, and then returning the updated data via WCF to be persisted to the database. The Application, WCF Service and Database are all on different machines. The data being retrieved consists of an object and ...