n-tier-architecture

Can the domain model and repositories be in seperate dlls?

元气小坏坏 提交于 2019-12-04 09:50:12
Can the domain model and the repositories be in separate dlls? In a 3 tier architecture I guess I would put the domain model in the business layer and the repositories in the data access layer. I get confused as it is my understanding that the domain model uses the repositories while the repositories should return objects from the domain model, which would cause a circular dependency. I must be misunderstanding one or more of the above concepts. Any clarification would be greatly appreciated as this has been bothering me for a while, thanks. I don't think you should let your domain assembly

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

心不动则不痛 提交于 2019-12-04 08:42:31
问题 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

Does DI make sense in a desktop app?

99封情书 提交于 2019-12-04 05:47:43
I am about to create a Desktop App (with .NET windows forms) Essentially, I want to create an n-tier app but I also want loose coupling between layers. However, I am not very sure if this is a good approach for windows forms And now I just wonder if it would be really a wise choice to use any IoC (StructureMap, Ninject, Spring.Net), I have used them before for Asp.Net web applications but what makes me doubt now is the fact that working with windows forms my business entities will persist when I navigate through tabs and unlike than web forms or mvc apps where it would be necesary to inject my

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

烈酒焚心 提交于 2019-12-04 04:43:14
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 prototype using datasnap 2009. So I've got a thin client, a stateless server app and a database server. What I would be able to do is to detect and handle connection loss (internet connectivity) between the client and the server app to handle it appropriately, ie: Display an informative error message to the user or to detect a server shutdown to silently redirect on another app server. In 2

Strategy for tracking user recent activity

霸气de小男生 提交于 2019-12-04 03:09:48
Our customer would like to know who is online and currently using the custom application we wrote for them. I discussed it with them and this does not need to be exact , more of a guestimate will work. So my thought is a 15 minute time interval to determine user activity. Some ideas I have for doing this are as follows: Stamp their user record with a date and time of their last activity every time they do something that hits the database, or requests a web page ... this though could be quite database intensive. Send out a "who is online request" from our software, looking for responses, this

mixing NHibernate with 3 tier developing

你离开我真会死。 提交于 2019-12-04 02:15:26
问题 I have a 3 tiered app: 1st layer: SQL DB. 2nd layer: App Sever (dotnet) 3rd layer: smart wpf client. I'm using NHibarnate (fluent) as the data source for the application server layer (App server- 2nd layer talks to DB using NH) Application layer talks to the client using WCF. Do I benefit anything from using NH - as WCF doesn't support NH lazy loading (at least it doesn't look like this) and - if I use a static session object - I have to make the server single instance single concurrency -

Where to define the interfaces for a repository in an layered architecture?

假如想象 提交于 2019-12-04 02:13:39
Background I'm trying to create a simple application to really understand the whole stack of DDD+TDD+etc. My goal is to dynamically inject the DAL repository classes at runtime. This keeps my Domain and Application Services layers testable. I plan on using "poor man's DI" to accomplish this for now ... so I would do this in a simple Console application near startup: // Poor man's DI, injecting DAL repository classes at runtime var productRepository = new SimpleOrder.Repository.ProductRespository(); var customerRepository = new SimpleOrder.Repository.CustomerRepository(); var orderRepository =

How to build n-layered web architecture with PHP?

北城以北 提交于 2019-12-04 01:42:49
问题 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

Need Help in applying SOLID principles

谁都会走 提交于 2019-12-03 16:30:17
Really impressed with Juile Lerman's pluralsight course on "EF in Enterprise" and decided to build my demo app. I am using VS 2012 and latest versions of EF,SQL Server and MVC. I am building a demo application which applies SOLID principles. I am doing this to better understand how to implement DI & unit testing. I have used DB first approach for this demo application. It contains only one table named UserDetails and below is how it looks in SQL server. I will use this table for CRUD operations. Below is how i have layered my application : 1. WESModel Solution: This layer contains my Model1

What does N-tier Architecture mean nowadays?

回眸只為那壹抹淺笑 提交于 2019-12-03 14:22:55
In a traditional sense, N-tier means separating the application into "tiers" and putting each "tier" on different servers. This was done for at least 3 reasons: Maintenance: a) Code Maintenance: Easier to do bug fixes and feature additions. b) Hardware Maintenance: Taking one server down does not disrupt service from other tier. Performance: One server was often not fast enough to handle web requests, business logic computations, and database/file access at the same time. Scalability: Specifically horizontal scalability a) Fault Tolerance: Ability to have more than 1 physical server per tier