EL helper 介绍



     微软企业库-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是可管理的开发环境的基础。它将程序开发时普遍用到的一些经常性处理,抽象共性,且单独集结成题(如错误及异常处理等),最后以模块的形式呈现给使用者,故普遍高于一般编程约一个层级,相互可组合。我们可采取“对我有用”的灵活策略。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值