n-tier-architecture

Have I implemented a n-tier application with MVC correctly?

橙三吉。 提交于 2019-12-17 19:48:13
问题 Being pretty unfamiliar with design patterns and architecture, I'm having trouble explaining to others exactly how my latest application is designed. I've switched between thinking it's a pure n-tier, pure MVC and n-tier with MVC in the presentation layer. Currently I think the latter is correct, but I want thoughts from more experienced developers. How it works: Browser sends HTTP request to Tomcat. Maps the request via web.xml to a servlet (which I call controller) The controller

Entity Framework - layered design - Where to put connectionstring?

南笙酒味 提交于 2019-12-17 18:41:49
问题 I am using a layered architecture with the Entity Framework as my datalayer with a bunch of repositories on top which contain the Linq-To-Entities queries. The data layer is one project, next to that I have a Services layer and the interface, which is a website. I want my website to be responsible of specifying the connectionstring for my entity model. How do I do this? I am using a singleton method to get to my entity repository, which is located inside the datalayer. Thanks 回答1: You can

Fastest way to convert datatable to generic list

强颜欢笑 提交于 2019-12-17 12:08:37
问题 I have a data tier select method that returns a datatable. It's called from a business tier method that should then return a strongly typed generic List. What I want to do is very similar (but not the same as) this question: How do you convert a DataTable into a generic list? What's different is that I want the list to contain strongly-typed objects rather than datarows (also, I don't have linq avaiable here yet). I'm concerned about performance. The business tier method will in turn be

LINQ to SQL Web Application Best Practices

北城余情 提交于 2019-12-17 10:34:15
问题 In my experience building web applications, I've always used a n-tier approach. A DAL that gets data from the db and populates the objects, and BLL that gets objects from the DAL and performs any business logic required on them, and the website that gets it's display data from the BLL. I've recently started learning LINQ, and most of the examples show the queries occurring right from the Web Application code-behinds(it's possible that I've only seen overly simplified examples). In the n-tier

MVC Vs n-tier architecture

回眸只為那壹抹淺笑 提交于 2019-12-17 04:10:57
问题 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 回答1: N-tier architecture usually has each layer separated by the network. I.E. the presentation layer is on some web servers, then that talks to backend app servers over the network for

When Building an N-Tier application, how should I organize my names spaces?

放肆的年华 提交于 2019-12-14 03:04:43
问题 So when I started trying to build my websites in an n-tier architecture, I was worried about performance. One of the guys who answered the question told me if you applied a good architecture you'd end up with even a better performance. It's related to compiling the dlls and stuff, but now I'm not sure how to name my namespaces. Like I have the main Namespace for my data access layer so let's say I have this namespace as my data layer ..DAL but now I have more than entity in the application

n-tiers & ORM & how to implement ORM

陌路散爱 提交于 2019-12-13 01:53:57
问题 Usually I'm developing application in tiers (DAL, BLL, UI) using VS.NET 2008 with .net framework 3.5. For data access, I'm using Enterprise Library 4.1 and logging using log4net. I've heard about ORM, and interesting to implement ORM in my programming, how to do that? Is that any impact to the performance? I know 2 ORM, NHibernate and Entity Framework. from www.ormbattle.net NHibernate performance is not good, and Entity Framework I think it's too 'young' to be used in VS.NET 2008. What about

Can anybody explain these words.Presentation Tier .Business Tier .Integration Tier in java EE with example?

纵饮孤独 提交于 2019-12-12 11:23:06
问题 What are these in Java EE .Presentation Tier .Business Tier .Integration Tier I like to know what are these patterns with example 回答1: Presentation tier: what the users see, typically a web application. Business tier: where all the logic for your application is performed. Integration tier: what connects the system to other systems (through database connections, JMS, web services, etc). 回答2: Mulit-tier architecture, or n-tier architecture, is an architecture style in which the different

How to connect 2 virtual machines in Windows Azure to have Two-Tier-Architecture?

亡梦爱人 提交于 2019-12-12 07:59:41
问题 How to create 2 connected virtual machines in Windows Azure to be able to deploy Two-Tier-Architecture solution ? Let me clarify the scenario, Currently I am using 1 virtual machines in Windows Azure where I have the SQL Server 2008 DB installed AND the ASP.NET solution. However, I want to create a very simple Two-Tier-Architecture where the SQL Server 2008 DB is installed on Server1, and the ASP.NET solution is deployed on Server2. So, How to accomplish that? I mean, How to connected those

one table is available in Presentation Tier, the other is not

大城市里の小女人 提交于 2019-12-12 02:40:03
问题 I created a VB.Net solution using the N-Tier walkthrough with Northwind. The solution worked. http://msdn.microsoft.com/en-us/library/bb384570.aspx I then created a new solution using a different database. In the XSD I can execute the queries and the data appears. However, the data is not available in the Presentation Tier from these tables using the WCF service. I have imported the new tables to Northwind, and they don't work in the PresentationTier. I have imported the Northwind tables to