3-tier

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

点点圈 提交于 2019-12-03 12:12:50
问题 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 functionality into three main things: Model -> Controller -> View. Is the MVC a different approach than the three-tier architecture? Or am I still supposed to be thinking

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

試著忘記壹切 提交于 2019-12-03 03:27:39
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 functionality into three main things: Model -> Controller -> View. Is the MVC a different approach than the three-tier architecture? Or am I still supposed to be thinking of creating a Data Access Layer and a Business Logic Layer in my project? What exactly are Repositories

Use of DTO in 3 tier architecture [closed]

ぃ、小莉子 提交于 2019-12-01 03:07:27
I am using simple 3 tier architecture. In this I am using DTO classes to communicate between UI,BL and DL. So there is any better way for communication between layers? or this is the right way? DTO, Data transfer Object, is the concept for distribution layer, you use when transferring data between your consumers and your service. So, if you don't publish any service, get off DTO. To answer your question, it also depends on how complex your application is. If it's simple, just use CRUD operation, or you can even use DataTable , DataSet for communication. Otherwise, Domain Entity from DDD is the

Create Three Tier Application using Maven

∥☆過路亽.° 提交于 2019-12-01 01:48:04
I want to create a multi-layer java project using maven as follows: PresentationLayer-GUIModule (top most layer for jsp/jsf pages) PresentationLayer-GatewayModule (topmost layer for web services) BusinessLayer-ServiceModule (middle layer) DataAccessLayer (lowermost layer) CommonLayer (vertical layer which is accessible from all layers) Maven Module Structure: root pom EAR pom GUIModule pom GatewaModule pom ServiceModule pom DataAccessLayer pom CommonLayer pom I have create a project called flashcard with the following pom configurations: root pom: <project xmlns:xsi="http://www.w3.org/2001

Use of DTO in 3 tier architecture [closed]

会有一股神秘感。 提交于 2019-11-30 23:08:43
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am using simple 3 tier architecture. In this I am using DTO classes to communicate between UI,BL and DL. So there is any better way for communication between layers? or this is the right way? 回答1: DTO, Data

C# Invalid attempt to call Read when reader is closed

只谈情不闲聊 提交于 2019-11-30 06:50:49
I am having Invalid attempt to call Read when reader is closed error when I am doing 3 tier project in C# language. What I am trying to do is retrieve address data column by joining two tables together and display in a drop down list. Here is my data access layer: public List<Distribution> getDistributionAll() { List<Distribution> distributionAll = new List<Distribution>(); string address; SqlDataReader dr = FoodBankDB.executeReader("SELECT b.addressLineOne FROM dbo.Beneficiaries b INNER JOIN dbo.Distributions d ON d.beneficiary = b.id"); while (dr.Read()) { address = dr["addressLineOne"]

How MVC (ASP.NET MVC) band 3-tier architecture can work together?

二次信任 提交于 2019-11-30 05:28:17
I am writing a design document and people on my team are willing to do the move from ASP.NET WebForm to ASP.NET MVC. This is great, but I have a hard time to understand how MVC workswith in a 3-tier (Data Layer, Business Layer and Presentation Layer) architecture. Can we say that the Model, View and Controller are part of the Presentation Layer? Is the Model part of the Business Layer? In brief, how MVC and 3-tier architecture can work together? Thanks for the help! I consider ASP.Net MVC to be in the presentation layer. The "Model" classes it uses are really View Models, which describe the

What is the difference between Database Abstraction Layer & Data Access Layer?

可紊 提交于 2019-11-28 17:02:28
I am actually stuck in 3-tier structure. I surfed the internet and found two terminologies "Database Abstraction Layer" & "Data Access Layer". What are the differences between the two? Lotus Notes My understanding is that a data access layer does not actually abstract the database, but rather makes database operations and query building easier. For example, data access layers usually have APIs very similar to SQL syntax that still require knowledge of the database's structure in order to write: $Users->select('name,email,datejoined')->where('rank > 0')->limit(10); Data abstraction layers are

MVC multi-tier mobile application

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 14:41:55
I'm a bit confused about using the MVC pattern. We have a 3-tier architecture: data, middleware, front-end. We are developing an app for iPad which basically does the following: consumes a JSON service shows the results in some UI form the user interacts (taping an icon) / modifies (editing some input) repeat... A business process is completed after n-iterations of the previous flow, that is, we consume a service and update the screen, the user does something and we use the response data from the previous service plus some other user input as the parameters to a second request, then the

LINQ to map a datatable into a list<MyObject>

家住魔仙堡 提交于 2019-11-28 06:37:21
I just discover LINQ so be comprehensive with me please! :-) So! I have a Data-tier who provide me datatables and i want to convert them into lists of objects. These objects are defined in a spécific layer DTO (Data transfer Objects). How can I map every rows of my datatable into objects and put the all objects into a list? (today i make it "manually" field after field) Is it possible with LINQ? I've heard about LINQ2Entities? am i right? Thanks to help a beginner to understand... Tomas Jansson If the objects is not too complex you can use this: public static class DataTableExtensions { public