摘要:
xml文件 诸葛亮姓什么? 诸 诸葛 诸葛亮 亮 2 三国是指那三国? 魏国 吴国 辽国 蜀国 ...
阅读全文
posted @ 2008-01-29 20:03
xhan
阅读(3264)
推荐(1)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System.Collections.Generic; using System.Text; namespace Exam.BLL { /**/...
阅读全文
posted @ 2008-01-28 12:38
xhan
阅读(409)
推荐(0)
摘要:
从用例到代码, 第一部分: 用例分析 级别: 初级 Gary Evans, Independent Obje...
阅读全文
posted @ 2008-01-20 16:58
xhan
阅读(1774)
推荐(0)
摘要:
Service Layer by Randy Stafford Defines an application's boundary with a layer of services that establishes a set of available operations and coordinates the application's response in each operation. ...
阅读全文
posted @ 2008-01-17 12:59
xhan
阅读(343)
推荐(0)
摘要:
Table Module A single instance that handles the business logic for all rows in a database table or view. For a full description see P of EAA page 125 One of the key messages of object orientation...
阅读全文
posted @ 2008-01-16 22:24
xhan
阅读(342)
推荐(0)
摘要:
Domain Model An object model of the domain that incorporates both behavior and data. For a full description see P of EAA page 116 At its worst business logic can be very complex. Rules and logic ...
阅读全文
posted @ 2008-01-16 20:06
xhan
阅读(422)
推荐(0)
摘要:
更新丢失(Lost updates):例如:A程序员打开一个类文件,在A保存文件之前,B也打开了这个文件。A修改了代码文件的一个method1()方法,B修改了代码文件的method2()方法。然后B在A之前保存了文件。这样当A保存文件时候就会把B对method2()方法的修改该覆盖掉造成了B对文件更新的丢失! 不一直读(inconsistant read):发生在读取两个各自正确的数据,而他们却...
阅读全文
posted @ 2008-01-15 20:28
xhan
阅读(272)
推荐(0)
摘要:
响应时间:系统完成一次外部请求处理要用的时间。外部请求可能是用户交互行为,如:点击一个button,或者是服务器API的调用。 响应性:不同于请求处理,它是系统响应请求的速度有多块.这个指标在许多系统里非常的重要,因为对于一些系统而言,如果响应性太慢,用户将难以忍受。尽管其响应时间可能不慢。如果在请求处理期间,系统一直处于等待状态,则系统的响应性和响应时间是相同的。然而,如果能够在处理真正完成之前...
阅读全文
posted @ 2008-01-15 13:01
xhan
阅读(266)
推荐(0)
摘要:
领域逻辑模式(Domain Logic Patterns) 1、Transaction Script(事务脚本) Organizes business logic by procedures where each procedure handles a single request from the presentation. For a full description see P of EAA...
阅读全文
posted @ 2008-01-15 11:39
xhan
阅读(871)
推荐(0)
摘要:
File.ReadAllText (String) 打开一个文本文件,读取文件的所有行,然后关闭该文件。 File.ReadAllText (String, Encoding) ...
阅读全文
posted @ 2008-01-04 10:10
xhan
阅读(1759)
推荐(0)
摘要:
NET Framework 允许您异步调用任何方法。定义与您需要调用的方法具有相同签名的委托;公共语言运行库将自动为该委托定义具有适当签名的 BeginInvoke 和 EndInvoke 方法。 BeginInvoke 方法用于启动异步调用。它与您需要异步执行的方法具有相同的参数,只不过还有两个额外的参数(将在稍后描述)。BeginInvoke 立即返回,不等待异步调用完成。BeginInvok...
阅读全文
posted @ 2008-01-04 09:44
xhan
阅读(316)
推荐(0)
摘要:
http://www.microsoft.com/china/MSDN/library/enterprisedevelopment/builddistapp/Microsoft.NETPetShop3.0.mspx?mfr=true
阅读全文
posted @ 2008-01-02 15:58
xhan
阅读(218)
推荐(0)
摘要:
随着.NET 2.0的发布,将会使得使用ASP.NET 2.0来构建的Web应用越来越容易。使用ASP.NET 2.0和SQL Server 2005,将会比ASP.NET 1.1更方便地构建多层体系架构的web应用。本文,将使用ASP.NET 2.0和SQL Server 2005 (.net使用Visual Studio 2005 beta 2,SQL Server 2005使用april c...
阅读全文
posted @ 2008-01-02 10:23
xhan
阅读(287)
推荐(0)
摘要:
protected override void Render(HtmlTextWriter writer) { StringWriter stringWriter=new StringWriter(); HtmlTextWriter oldwriter=new HtmlTextWriter(stringWriter); base.R...
阅读全文
posted @ 2007-12-26 11:22
xhan
阅读(850)
推荐(0)
摘要:
使用NUnit进行DotNet程序测试 作者:kongxx 介绍 NUnit是目前比较流行的.Net平台的测试工具,以下就简单介绍一下他的开发。 准备 要使用NUnit,首先要确保您的机器上有NUnit的开发包,您可以从http://www.nunit.org/ 地方获取并安装(目前版本是NUnit v2.1.91)。正确安装后会在开始菜单下添加一个NUnit 2.2项目。 属性说明 在开始写例...
阅读全文
posted @ 2007-12-20 11:30
xhan
阅读(470)
推荐(0)
posted @ 2007-10-21 11:29
xhan
阅读(1037)
推荐(0)
摘要:
A Laboratory For Teaching Object-Oriented Thinking A Laboratory For Teaching Object-Oriented Thinking Kent Beck, Apple Computer, Inc. Ward Cunningham, Wyatt Software Services, Inc. From th...
阅读全文
posted @ 2007-09-30 23:29
xhan
阅读(395)
推荐(0)
摘要:
条款一:使用属性代替可访问的数据成员 1、在C#中属性(property)在访问时候看起来是数据成员,但却是用方法实现的!可以对set访问器做参数检查!可以对属性访问添加多线程支持! public class Person { private string name; public string Name { get { ...
阅读全文
posted @ 2007-08-28 09:18
xhan
阅读(288)
推荐(0)
摘要:
using System; using System.Threading; using System.Runtime.Remoting.Proxies; using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting; namespace ConsoleApplication1 { public interfac...
阅读全文
posted @ 2007-08-27 11:55
xhan
阅读(377)
推荐(0)
摘要:
Figure 1 Syntax in ASP.NET 2.0 Default.aspx Default.aspx.cs namespace MsdnMag { public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } } Fig...
阅读全文
posted @ 2007-06-22 17:12
xhan
阅读(278)
推荐(0)