摘要:在阅读 Enterprise Library 代码的时候,我们可以看到 Enterprise Library 的测试代码和实现功能代码是在一个项目中的。这么做的好处在于: 测试跟实现代码放在一起,我们就可以测试 internal 的方法函数。参见对 internal 的定义:internal 关键字是类型和类型成员的访问修饰符。内部成员只有在同一程序集中的文件内才是可访问的。http://ms...
阅读全文
|
随笔分类 - DNN&dotText研究
DNN&dotText研究
摘要:在阅读 Enterprise Library 代码的时候,我们可以看到 Enterprise Library 的测试代码和实现功能代码是在一个项目中的。这么做的好处在于: 测试跟实现代码放在一起,我们就可以测试 internal 的方法函数。参见对 internal 的定义:internal 关键字是类型和类型成员的访问修饰符。内部成员只有在同一程序集中的文件内才是可访问的。http://ms...
阅读全文
摘要:在 Enterprise Library 的代码中,几乎每个项目我们都可以看到一个SR.strings 这样的文件。这样的文件是为系统支持各个语言版本所作的工作。简单来说,你需要在 SR.strings 中,书写各个本地化版本的异常信息、提示信息等信息。然后使用 String Resource Generator 工具产生对应的 .resx 文件以及对应的CS文件。 这样在代码中调用这个...
阅读全文
摘要:Enterprise Library: Configuration Application Block类设计分析篇 Written by: Rickie Lee (rickieleemail#yahoo.com) My blog: www.cnblogs.com/rickie Configuration Application Block允许应用程序方便读写应用程序配置信息。 下图...
阅读全文
摘要:上节[Enterprise Library]Data (一)Data的config文件我们看到三个集合类: DatabaseTypeDataCollection InstanceDataCollection ConnectionStringDataCollection 它们都是从Enterprise Library的Common.DataCollection中继承而来, ...
阅读全文
摘要:Data的config文件结构如下: enterpriseLibrary.databaseSettings databaseTypes databaseType instances instance connectionStrings connect...
阅读全文
摘要:function Change(targetID){ if (document.getElementById){ target = document.getElementById(targetID); if (target.style.display == "none") { target.style.display = ""; } else { target.s...
阅读全文
摘要:自定义UserControl的属性为什么不能在设计时显示在属性窗口中 http://www.cnblogs.com/dudu/archive/2004/03/25/4123.aspxPosted on 2004-03-25 10:46 dudu解决方法: 假如你写了一个自定义控件,类名为MyUserControl, 文件名为MyUserControl.ascx, 命名空间为MyWeb.Con...
阅读全文
|