n-tier-architecture

What Project Layer Should Screen DTO's Live In?

≡放荡痞女 提交于 2019-12-02 18:32:17
I have a project where we use screen DTO's to encapsulate the data between the Service Layer and the Presentation Layer . In our case, the presentation layer is ASP.Net. The only classes that know about the DTO's are the service layer classes and the Pages/Controls that call these services and display the DTO's. The DTO's are almost always Page/Control specific so I feel they belong in the Presentation Layer, but that would mean the Service Layer would have to reference the Presentation Layer in order to use the DTO's. I'm almost thinking that the Service Layer should return richer objects

DDD Concepts in N-Layer Development

老子叫甜甜 提交于 2019-12-02 18:16:28
After spending a couple months studying DDD methodology, I've now began to apply these concepts into actual products at my company. In fact, I've been tasked with creating a suitable and maintainable architecture for future development. We have decided to make use of the following technologies: EF4 (really v2), Unity The amount of information I've obtained has been most enlightening, however, I'm left with several questions in best practice: Question #1: DTOs - Best Practices I have my domain objects (POCO classes). There are several ways to implement these classes. Traditional Approach:

Difference between three tier vs. n-tier

半城伤御伤魂 提交于 2019-12-02 17:15:33
I just came across the following sentence: As the industry has moved from a three tier model to n-tier models, the object relational impedance mismatch has become more prevalent. But I can't find a concise explanation of the difference between three tier and n-tier. I know what three tier is, and I assume n-tier just adds one or more tiers. I'm just not sure what these additional tiers would be. If anyone has a short explanation or simply a good link, that would be much appreciated. The quote appears to be from this codeproject page. It also seems to do a pretty good job of explaining n-tier

Onion archicecture dependencies in the same layer: Infrastructure and Web communicating

只谈情不闲聊 提交于 2019-12-02 13:59:43
I am designing an ASP.NET MVC application using the Onion Architecture described by Jeffrey Palermo. It is an ASP.NET MVC 2.0 project, where I am requiring that all views be strongly typed using dedicated View Models -- we will not be passing domain models to our views. We are using AutoMapper to do the translation -- AutoMapper is isolated in the infrastructure, Web does not know or care that AutoMapper is being used. Currently, I am defining the IViewModelMapping interfaces in the Web project -- simply because this service will be used by the Controllers and it has direct access to its own

Opinions about authentication between application and database tiers

我与影子孤独终老i 提交于 2019-12-02 12:52:57
问题 I'm puzzling over a technical dilemma where two folks on our team a recommending two different security models each with pros and cons. The greenfield looks like this: We have a an asp.net web app, talking to a business layer, talking to a database. *One of the requirements is to be able to have higher level users delegate business layer rights to other users. One of the folks is lobbying for the capability of an internet user to pass their credentials all the way down into the database so

Types the DAL and BLL should pass

瘦欲@ 提交于 2019-12-02 05:06:22
问题 Just a quick question. In a tiered architecture environment with a Business Logic Layer (BLL) and a Data Access Layer (DAL), what types should the DAL pass to the BLL? Currently our DAL classes produce DataTables and SQlDataReader objects (among others common data types). Should the conversion of the objects to our custom types be done in the DAL before passing to the BLL or should the DAL pass the original type and the BLL does the conversion? I'm trying to think of a scenario where the DAL

Is the MVC-pattern a pure presentation-tier pattern?

拥有回忆 提交于 2019-12-01 15:33:26
问题 Kind of a special question today :) I just had a test at my technical university where I was told that I am wrong. So I like to know from you folks(I believe you more than my teachers): Is the MVC-pattern implemented at the presentation-layer only? Or is the Model-part of the pattern in the Business/DataAccess-layer implemented. My teacher said, it's not possible that a pattern can span more than one tier. But I think it's an an enterprise-architecture-pattern and therefore can span multiple

How to build n-layered web architecture with PHP?

青春壹個敷衍的年華 提交于 2019-12-01 08:43:25
I'm dealing with the 3-tier architecture PHP website. Now I need to redesign it to suрроrt distributed n-tier architecture. After long hours of research i came to this solution: business logic should be separated into presentation and purely business logic tier to allow for n-layer architecture (user-interface,presentation tier,b.logic and data tier). I have decided to use РНР just for the presentation. In the business logic I want to use J2ЕЕ implementation technology instead of implementing it in PHP because J2EE can provide much more essential container services which are essential for

Where does Web API fit in a typical n-tier architecture?

删除回忆录丶 提交于 2019-11-30 12:25:37
问题 Usually when i layout an n-tier architecture for a project I have the following layers: Domain (domain model, repository contracts) Data (repositories working on top of domain model) Service (aggregates repos, caching, validation) Presentation (the mvc app) Where would ASP.NET MVC 4 Web API fit into this considering that it will be used by the actual application and outside clients? Is it part of the service layer or does it use the service layer and sits at the same level with the MVC app?

What is the difference between tier vs layer application?

久未见 提交于 2019-11-30 07:27:36
问题 Last week I was talking about the 3 tier architecture with my seniors. I was saying that it has a UI tier, Business Logic Tier and Data Access tier. After I have finished, he just told me that, I am talking about 3 layered architecture, not a 3 tier architecture. Then I asked him what is the difference, he assigned me the task to make a documentation about the difference. so Here I am, Os far, I come to point that a 3 tier architecture is 1. A client in on machine, 2. The application Server