n-tier-architecture

DDD Concepts in N-Layer Development

时光怂恿深爱的人放手 提交于 2019-12-03 03:57:17
问题 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

Difference between three tier vs. n-tier

≡放荡痞女 提交于 2019-12-03 03:49:59
问题 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. 回答1: The

Advice For A Newbie About N-Tier Applications

♀尐吖头ヾ 提交于 2019-12-03 02:27:53
Okay people, here's another one for ya'll: I'm starting in the n-tier apps world. I've done some reading on the topic and general advice is that n-tier apps' objective is to abstract functionality tween layers. So, based on this, in a n-tiered app the regular model is: Data Access -> Business Layer -> Presentation Since I'm a .NET developer, I thought that to enhance integration with multiple client types (Silverlight, Web app or even a WinForms client) I should use WCF (Windows Communication Foundation) as data services at the business layer so clients can communicate to it regardless of its

How To Maintain Transaction in N-Tier Architecture

左心房为你撑大大i 提交于 2019-12-03 00:43:53
I am developing application in N-Tier Architecture. as we all know that we need to implement transactions while insert/update/delete operation. please tell me how to use transaction in c#.net in N-Tier architecture. my architecture is like this Applicationform->middle_Layre->Factory->DataAccessLayre->StoredProcedure->Table in application form i create object of middleLayer and pass data in Insert/update/delete function of middle layer. i am creating object of sqlcommand in factoryclass and fill the data which i gets from middle layer and pass that object os sqlcommand to DAL. Here is a

N-Tier Architecture - Structure with multiple projects in VB.NET

拜拜、爱过 提交于 2019-12-03 00:31:08
I would like some advice on the best approach to use in the following situation... I will have a Windows Application and a Web Application (presentation layers), these will both access a common business layer. The business layer will look at a configuration file to find the name of the dll (data layer) which it will create a reference to at runtime (is this the best approach?). The reason for creating the reference at runtime to the data access layer is because the application will interface with a different 3rd party accounting system depending on what the client is using. So I would have a

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

不羁的心 提交于 2019-12-03 00:18:39
问题 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

Data Layer Best Practices

孤者浪人 提交于 2019-12-02 23:59:34
I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application. One viewpoint is that the data layer should be aware of business objects (our own classes that represent an entity), and be able to work with that object natively. The opposing viewpoint is that the data layer should be object-agnostic, and purely handle simple data types (strings, bools, dates, etc.) I can see that both approaches may be valid, but my own viewpoint is that I prefer the former. That way, if the data storage medium changes, the business layer doesn't

Entity Framework 6 - use my getHashCode()

本小妞迷上赌 提交于 2019-12-02 22:53:52
There's a certain amount of background to get through for this one - please bear with me! We have a n-tier WPF application using EF - we load the data from the database via dbContext into POCO classes. The dbContext is destroyed and the user is then able to edit the data. We use "state painting" as suggested by Julie Lerman in her book "Programming Entity Framework: DBContext" so that when we add the root entity to a new dbContext for saving we can set whether each child entity is added, modified or left unchanged etc. The problem we had when we first did this (back in November 2012!) was that

Advice on moving to a multi tier Delphi architecture

眉间皱痕 提交于 2019-12-02 22:22:39
We have a relatively large application that is strongly tied into Firebird (stored procedures, views etc). We are now getting a lot of requests to support additional databases and we would also like to move a lot of the functionality from the client to the server. Now seems like a good time to move to a 3(4) tier architecture. We have already looked at DataSnap 2009 and RemObjects SDK/DataAbstract. Both seem like they would do the job, but are there any advantages/disadvantages we should look out for? Are there any other frameworks that you could recommend? Cheers, Paul In the process of

Should service layer classes be singletons?

[亡魂溺海] 提交于 2019-12-02 18:57:14
I am using Spring framework. Should my service classes be created as singletons? Can someone please explain why or why not? Thanks! Yes, they should be of scope singleton . Services should be stateless, and hence they don't need more than one instance. Thus defining them in scope singleton would save the time to instantiate and wire them. singleton is the default scope in spring, so just leave your bean definitions as they are, without explicitly specifying the scope attribute. You can read more about scopes in the spring docs . Spring is easier to use if you stick with singleton-scoped beans.