您正在查看 "Dotnet" 分类下的文章
2007-08-08 11:44 A.M.
.NET Framework拦截机制的设计中,在客户端和对象之间,存在着多种消息接收器,这些消息接收器组成一个链表,客户端的调用对象的过程以及调用返回实行拦截,你可以定制自己的消息接收器,把它们插入了到链表中,来完成你对一个调用的前处理和后处理。那么调用拦截是如何构架或者说如何实现的呢?
在.NET中有两种调用,一种是跨应用域(App Domain),一种是跨上下文环境(Context),两种调用均通过中间的代理(proxy),代理被分为两个部分:透明代理和实际代理。透明代理暴露同对象一样的公共入口点,当客 |
2007-08-08 11:17 A.M.
| Api函数是构筑Windws应用程序的基石,每一种Windows应用程序开发工具,它提供的底层函数都间接或直接地调用了Windows API函数,同时为了实现功能扩展,一般也都提供了调用WindowsAPI函数的接口, 也就是说具备调用动态连接库的能力。Visual C#和其它开发工具一样也能够调用动态链接库的API函数。.NET框架本身提供了这样一种服务,允许受管辖的代码调用动态链接库中实现的非受管辖函数,包括操作系统提供的Windows API函数。它能够定位和调用输出函数,根据需 | |
2007-08-07 01:31 P.M.
2007-08-07 01:30 P.M.
2007-08-07 01:29 P.M.
2007-08-07 01:29 P.M.
2007-08-07 01:28 P.M.
2007-08-07 01:27 P.M.
2007-08-07 12:35 P.M.
ContextAttribute派生自Attribute,同时它还实现了IContextAttribute和IContextProperty接口。所有自定义的ContextAttribute必须从这个类派生。
构造器:
ContextAttribute:构造器带有一个参数,用来设置ContextAttribute的名称。
公共属性:
Name:只读属性。返回ContextAttribute的名称
公共方法:
|
2007-05-16 11:21 A.M.
All the parameters will be added to the data adapter's Parameters collection and bound to a DataTable column.
SqlParameter p1 = new SqlParameter("@sFirstName", SqlDbType.NVarChar, 10);
p1.SourceVersion = DataRowVersion.Current;
p1.SourceColumn = "firstname";
da.InsertCommand.Parameters.Add(p1);
SqlParameter p2 = new SqlParameter("@sLastName", SqlDbType.NVarChar, 30);
p2.SourceVersion = DataRowVersion.C |
2007-05-16 11:21 A.M.
Inside ADO.NET Batch Update
Dino Esposito
Wintellect
November 8, 2001
The interaction between ADO.NET applications and the underlying data sources is based on a dual architecture with two-way channels. You access a data source to read and write rows using either individual and provider-specific commands or batch update procedures. In both cases, the data access results in a complete two-way binding and involve |
2007-05-16 11:18 A.M.
下面是使用ADO时程序员应该知道的规则。只要程序员了解并且适当地使用
在应用系统中,那么让ADO和ADOExpress拥有良好的执行效率并不是困难的事情:
1) 尽量找到真正的原生ADO和OLE DB驱动程序。尽量不要使用ADO For ODBC驱动程序,
因为这种架构使用在一些数据库 |
2007-05-16 10:32 A.M.
I’ve gotten this same question several times in the last few weeks, so I thought it would be a good idea to put together some details on the topic. Update batching is a new ADO.NET 2.0 feature that, when enabled, introduces an optimization to the process of executing a DataAdapter.Update call (which basically takes the changes from a DataTable and pushes them into a database using th |
2007-05-15 10:57 P.M.
2007-05-14 12:51 P.M.
实例程序说明
本文的实例程序包括一个列表框、三个按钮。程序使用一个新的线程来运行一个后台处理,结果在列表框中显示。按钮button1启动一个计算平方的线程。按钮button2停止后台处理线程。按钮button3退出程序。程序运行情况如图1所示。

使用线程
首先创建运行在新线程上的后台任务。表1所示的代码执行一个相当长的运行处理----一个无限循环。
|
|
|