
微软企业库-Enterprise Library,简称EL。主要应用于程序的复用领域,提供基础的程序集。EL为开发人员提供程序开发中某些环节普遍使用的可重用模块。程序开发人员可以利用它们来实现满足软件工程要求的项目,提供严格易用、一致可扩展、集成的松耦合、可测试、可维护的软件。这九个模块可独立、可组合使用。Try!
EL的九个程序开发功能组件集,包括:
缓存;
加密;
数据访问;
错误处理;
登录;
策略注入;
安全;
校验;
依赖注入与拦截。
Application Cross-Cutting Conserns:
Caching – provides local caching through in-memory or database storage Cryptography – provides support for encryption with multiple providers Data Access – provides support for the most used ADO.NET features like stored procedures, inline SQL statements, managing connections, caching parameters Exception Handling – offers a number of handlers to deal with most common exceptions: wrap, replace, logging, fault contract (WCF) Logging – helps with log message formatting and provides a variety of destinations: event, email, database, message queue, text file, WMI, custom Policy Injection – helps altering the behavior of objects based on cross-cutting concerns. It is built on Unity, a DI container. Security – helps developers deal with authorization and authentication issues Validation – provides support for validating input coming from other users or systems Unity Dependency Injection and Interception – it is a dependency injection container which was initially released independently (1.0) but it was enhanced and it is now included in this library
图示:

安装图示:
配置图示: 
对于EL,可根据以下情况具体使用:
- EL为开发企业级特征的程序,提供了普遍场景所用到的功能
- 作为自定制库的基础
- 程序块彼此独立
- EL的其它支持,包括文档、源代码、二件制文件、单元测试.
使用图示:
小记:
EnterpriseLibrary是可管理的开发环境的基础。它将程序开发时普遍用到的一些经常性处理,抽象共性,且单独集结成题(如错误及异常处理等),最后以模块的形式呈现给使用者,故普遍高于一般编程约一个层级,相互可组合。我们可采取“对我有用”的灵活策略。
5625

被折叠的 条评论
为什么被折叠?



