真实asp.net项目中设计模式实现的真实例子 [英] Real Life example of design pattern implementation in real asp.net Project

查看:92
本文介绍了真实asp.net项目中设计模式实现的真实例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在真实的asp.net项目中实现设计模式的真实生活示例..我已经阅读了几乎所有网站的所有文章,但他们只解释了定义和一些控制台示例。

但如何以实际形式实现基于asp.net的web应用程序



请给我解决方案

I need real Life example of design pattern implementation in a real asp.net project..I have read all the articles from almost all over sites but they only explain definition and some console example .
but how to implement in real form based asp.net web application

Please give me solution

推荐答案

您的意思是哪种设计模式?以下是其中许多解释: http://www.oodesign.com [ ^ ]。有些内置在框架内部,所以即使你不知道它也会使用它们......
Which design pattern do you mean? Here are many of them explained: http://www.oodesign.com[^]. Some are built-in into the framework itself, so you will use them even if you are not aware of it...






Gang of Four [ ^ ]以了解设计模式而闻名。最初你会发现很难在你的项目中实现,但是当你有一个复杂的大项目时,设计模式使它更容易维护。



使用任何设计模式都不是强制性的,但如果您正在开发长期项目,那么您的团队成员将有助于理解。



如果你是asp.net的初学者,那么我建议你只学习C#和ASP.Net的基本概念。经过实验后,您会发现应用程序遇到一些困难,此时您可以理解这种设计模式。



示例:



如果你需要一个保持一定价值的类,但是这个类被多次调用但你不想创建多个实例,那么你可以按照 SingleTon设计模式 [ ^ ]



希望你逐渐学习其他模式,
Hi,

Gang of Four[^] is very famous to learn about Design pattern. Initially you will find it difficult to implement in your project but when you have big project with complexity, design pattern make it easier to maintain.

It is not compulsary to use any of the design pattern but if you are developing long run project then it would be helpful to your team members to understand.

If you are beginner with asp.net then i suggest you to just learn basic concept of the C# and ASP.Net. After experiece you will find some difficulties in your application and at that moment this design pattern will be understand by you.

Example:

If you need one class that maintain some value, but that class is called many times but you don't want to create multiple instance of that then you can follow SingleTon Design pattern[^]

Hope you learn other pattern gradually,


检查以下链接。阅读A到Z的书。我想这对你有帮助。

http ://www.wrox.com/WileyCDA/WroxTitle/productCd-0470292784.html [ ^ ]

谢谢
Check following link. Read the book A to Z. I think this will be help you.
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470292784.html[^]
Thanks


这篇关于真实asp.net项目中设计模式实现的真实例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆