简体   繁体   English

用N层编程

[英]Programming with N-tier

What are the general guideline today for structuring a 3-tier application in Visual Studio 2010 with C#? 今天,使用C#在Visual Studio 2010中构造3层应用程序的一般准则是什么?

  1. Create blank Solution 创建空白解决方案
  2. Create a class library to hold data sets 创建一个类库来保存数据集
  3. Create a class library to hold data entity 创建一个类库来保存数据实体
  4. Create a class library to hold the business logic 创建一个类库来保存业务逻辑
  5. Create a class library to hold user interface (WPF or windows forms) 创建一个类库来保存用户界面(WPF或Windows窗体)

Is this correct? 这个对吗?

There a lot of right ways, and based on the application it may be perfect or not good. 有很多正确的方法,根据应用程序可能是完美的还是不好的。
Your structure seams good. 您的结构接缝良好。
But you may need to check a book like this: patterns & practices Application Architecture Guide 2.0 但是您可能需要检查一下这样的书: 模式与实践Application Architecture Guide 2.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM