﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-大海水  QQ: 505121657</title><link>http://www.cnblogs.com/mysoft/</link><description>我随意写写，你随便看看
</description><language>zh-cn</language><lastBuildDate>Sun, 07 Sep 2008 23:17:11 GMT</lastBuildDate><pubDate>Sun, 07 Sep 2008 23:17:11 GMT</pubDate><ttl>60</ttl><item><title>入手多普达S1精英版</title><link>http://www.cnblogs.com/mysoft/archive/2008/08/26/1276373.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Tue, 26 Aug 2008 01:20:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/08/26/1276373.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1276373.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/08/26/1276373.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1276373.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1276373.html</trackback:ping><description><![CDATA[<p>Windows Mobile 6.0</p>
<p>2k多大洋，好心疼啊！ <br />
</p>
<p>&nbsp;</p><img src ="http://www.cnblogs.com/mysoft/aggbug/1276373.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42134/" target="_blank">[新闻]JavaScript将成Silverlight的最大对手?</a>]]></description></item><item><title>一个不大不小的问题</title><link>http://www.cnblogs.com/mysoft/archive/2008/05/04/1181077.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Sat, 03 May 2008 22:42:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/05/04/1181077.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1181077.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/05/04/1181077.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1181077.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1181077.html</trackback:ping><description><![CDATA[最近遇到了一个不大不小的问题。<br />
用户希望实现自定义表和表的结构。更重要的是还要求自定义其间的关系。<br />
举例说，定义了一个大类（这里的类是现实世界的类型，不是程序中的Class）Vehicle（交通工具)，然后又定义了一个小类Car(汽车，轿车），那么Car就应该具有Vehicle的全部属性，可以理解为Car继承自Vehicle。<br />
那么在数据库中（即在数据存储部分）是如何实现？什么实现方式会比较好呢？<br />
希望听听大家的想法。<br />
<img src ="http://www.cnblogs.com/mysoft/aggbug/1181077.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42133/" target="_blank">[新闻]没有谷歌就活不下去的四个网站</a>]]></description></item><item><title>心情有点急</title><link>http://www.cnblogs.com/mysoft/archive/2008/04/14/1152312.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Mon, 14 Apr 2008 02:40:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/04/14/1152312.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1152312.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/04/14/1152312.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1152312.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1152312.html</trackback:ping><description><![CDATA[实话说 我不是那种特别容易急的人。<br />
可当你接手一个项目，<br />
在页面直接控制布局，<br />
sql语句布满在后台（cs文件中），<br />
一个类有几千行，<br />
一个文件夹有几十个页面，<br />
。。。。。。<br />
我确实是有点急了。<br />
<br />
<img src ="http://www.cnblogs.com/mysoft/aggbug/1152312.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42132/" target="_blank">[新闻]Google 10周岁生日</a>]]></description></item><item><title>苹果牛奶与香蕉的吃法</title><link>http://www.cnblogs.com/mysoft/archive/2008/01/22/1048248.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Tue, 22 Jan 2008 02:53:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/01/22/1048248.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1048248.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/01/22/1048248.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1048248.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1048248.html</trackback:ping><description><![CDATA[摘要: 苹果牛奶与香蕉的吃法&nbsp;&nbsp;<a href='http://www.cnblogs.com/mysoft/archive/2008/01/22/1048248.html'>阅读全文</a><img src ="http://www.cnblogs.com/mysoft/aggbug/1048248.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42131/" target="_blank">[新闻]祝Google 10周岁生日快乐</a>]]></description></item><item><title>街边10大毒小吃</title><link>http://www.cnblogs.com/mysoft/archive/2008/01/22/1048175.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Tue, 22 Jan 2008 02:16:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/01/22/1048175.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1048175.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/01/22/1048175.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1048175.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1048175.html</trackback:ping><description><![CDATA[<strong>1、麻辣烫</strong>
<p>　　危害度：★★★★★</p>
<p>　　公众喜欢度：★★★★☆</p>
<p>　　关键词：罂粟 地沟油 双氧水 福尔马林 PPA 止疼药</p>
<p>　　罪状揭露：&#8220;麻辣烫&#8221;验出&#8220;罂粟底&#8221;</p>
<p>　　<strong>2、毛鸡蛋</strong></p>
<p>　　危害度：★★★★★</p>
<p>　　公众喜欢度：★★★</p>
<p>　　关键词：&#8220;大补&#8221; <a class="blue" href="http://jck.39.net/jiancha/huaxue/bian/4e7b3.html" target="_blank">寄生虫</a> 细菌</p>
<p>　　罪状揭露：毛蛋含大量病菌危害大</p>
<p>　　<strong>3、烤肉、烤串</strong></p>
<p>　　危害度：★★★★☆</p>
<p>　　公众喜欢度：★★★★☆</p>
<p>　　关键词：流浪猫 死猪肉 &#8220;红粉&#8221; 亚硝酸盐</p>
<p>　　罪状揭露：烧烤摊挂羊头卖猫肉 你吃的羊肉串真是&#8220;羊肉&#8221;吗?</p>
<p>　　<strong>4、臭豆腐</strong></p>
<p>　　危害度：★★★★☆</p>
<p>　　公众喜欢度：★★★</p>
<p>　　关键词：硫酸亚铁 明矾 垃圾堆</p>
<p>　　罪状揭露：化工用硫酸亚铁染黑豆腐</p>
<p>　　<strong>5、油系油饼</strong></p>
<p>　　危害度：★★★</p>
<p>　　公众喜欢度：★★★★★</p>
<p>　　关键词：铝<a class="blue" href="http://news.39.net/hxw/" target="_blank">超标</a> 敌敌畏 地沟油</p>
<p>　　罪状揭露：油条八成铝超标 黑窝点竟用敌敌畏熏美味油条</p>
<p>　　<strong>6、煎饼果子</strong></p>
<p>　　危害度：★★★</p>
<p>　　公众喜欢度：★★★★</p>
<p>　　关键词：地沟油 柠檬黄色素 <a class="blue" href="http://news.39.net/hxw/" target="_blank">过期</a>火腿肠</p>
<p>　　罪状揭露：路边小摊贩用地沟</p>
<p>　　<strong>7、烤红薯</strong></p>
<p>　　危害度：★★★</p>
<p>　　公众喜欢度：★★</p>
<p>　　关键词：化工桶 黑斑病菌</p>
<p>　　罪状揭露：化工油桶改当烤炉烤红薯</p>
<p>　　<strong>8、海鲜排挡</strong></p>
<p>　　危害度：★★★</p>
<p>　　公众喜欢度：★★★★</p>
<p>　　关键词：寄生虫 水银<a class="blue" href="http://120.39.net/zdjj/" target="_blank">中毒</a> 甲醛</p>
<p>　　罪状揭露：海鲜掺甲醛</p>
<p>　　<strong>9、炸鸡翅</strong></p>
<p>　　危害度：★★☆</p>
<p>　　公众喜欢度：★★★★</p>
<p>　　关键词：薯粉丸 臭鸡翅</p>
<p>　　罪状揭露：快餐店辣鸡翅竟是发臭鸡翅制成</p>
<p>　　<strong>10、包子</strong></p>
<p>　　危害度：★★☆</p>
<p>　　公众喜欢度：★★★★★</p>
<p>　　关键词：猪肉瘤 血脖肉 死猪</p>
<p>　　罪状揭露：无良商贩用猪肉瘤配做包子馅<br />
转自：39健康网</p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/1048175.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42131/" target="_blank">[新闻]祝Google 10周岁生日快乐</a>]]></description></item><item><title>我的早餐</title><link>http://www.cnblogs.com/mysoft/archive/2008/01/14/1038908.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Mon, 14 Jan 2008 13:56:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/01/14/1038908.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1038908.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/01/14/1038908.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1038908.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1038908.html</trackback:ping><description><![CDATA[不知道大家早餐都吃些什么？<br />
下面是我的情况<br />
6：00起床 先喝一杯淡盐水（200ml）<br />
6：30早餐 2个煮鸡蛋+几片全麦面包+1杯蜂蜜水（300ml）+1袋纯牛奶（200ml）<br />
到公司再加1个苹果<br />
你们看怎么样呢？<img src="http://www.cnblogs.com/Emoticons/msn/47_47.gif"  alt="" />
<img src ="http://www.cnblogs.com/mysoft/aggbug/1038908.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42130/" target="_blank">[新闻]Google十年市值达1500亿美元 创造奇迹</a>]]></description></item><item><title>1月6日香八拉（有图）</title><link>http://www.cnblogs.com/mysoft/archive/2008/01/09/1032021.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Wed, 09 Jan 2008 06:56:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2008/01/09/1032021.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1032021.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2008/01/09/1032021.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1032021.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1032021.html</trackback:ping><description><![CDATA[<p>&nbsp;不得不承认，这个题目还是比较吸引人的（没看到有图的帖子点击率都高么！<img alt="" src="http://www.cnblogs.com/Emoticons/others/haha002.gif" /><br />
<br />
&nbsp;关键字：香八拉<br />
&nbsp;关键字注解：香山，八大处，拉出去溜溜。<br />
<br />
废话少说，上图是正道。<br />
</p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/1032021.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42129/" target="_blank">[新闻]GMail:回过头来支持IE6</a>]]></description></item><item><title>我的自定义类设计</title><link>http://www.cnblogs.com/mysoft/archive/2007/12/21/1009397.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Fri, 21 Dec 2007 08:59:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2007/12/21/1009397.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1009397.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2007/12/21/1009397.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1009397.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1009397.html</trackback:ping><description><![CDATA[<br />
&nbsp;下面是一个学生（Student)实体类，希望大家帮忙看看有哪些不妥的地方。<br />
&nbsp;最好能说明原因。谢谢！<br />
&nbsp;
<p><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;public class StudentInfo<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private Int32 _StudentID;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private String _Student;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private String _Memo;</font></p>
<p><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public StudentInfo() { }</font></p>
<p><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face="Courier New">&nbsp;public StudentInfo(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Int32 StudentID,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String Student)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this._StudentID = StudentID;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this._Student = Student;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public StudentInfo(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Int32 StudentID,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String Student,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String Memo)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this._StudentID = StudentID;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this._Student = Student;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this._Memo = Memo;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font></p>
<p><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public Int32 StudentID<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return _StudentID; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { _StudentID = value; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font></p>
<p><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public String Student<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return _Student; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { _Student = value; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font></p>
<p><font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public String Memo<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return _Memo; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { _Memo = value; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }</font></p>
 <img src ="http://www.cnblogs.com/mysoft/aggbug/1009397.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42128/" target="_blank">[新闻]Google十年大变样</a>]]></description></item><item><title>发布代码生成器——myAutoCoder</title><link>http://www.cnblogs.com/mysoft/archive/2007/12/20/1007560.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 20 Dec 2007 08:31:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2007/12/20/1007560.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1007560.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2007/12/20/1007560.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1007560.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1007560.html</trackback:ping><description><![CDATA[摘要:  不能免俗，也放上我的代码生成器。&nbsp;&nbsp;<a href='http://www.cnblogs.com/mysoft/archive/2007/12/20/1007560.html'>阅读全文</a><img src ="http://www.cnblogs.com/mysoft/aggbug/1007560.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42127/" target="_blank">[新闻]谷歌十年创新路</a>]]></description></item><item><title>我的运动作息时间</title><link>http://www.cnblogs.com/mysoft/archive/2007/12/20/1006671.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 20 Dec 2007 01:30:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2007/12/20/1006671.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/1006671.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2007/12/20/1006671.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/1006671.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/1006671.html</trackback:ping><description><![CDATA[<p>每天起床后喝一杯淡水（温白开）300毫升<br />
步行6公里到车站（保证出一身汗，<img alt="" src="/CuteSoft_Client/CuteEditor/images/emsmile.gif" align="absMiddle" border="0" />）<br />
到公司后做两遍第8套，50个俯卧撑。吃早餐（一般是1apple &amp; 1 banana）<br />
开始工作<br />
11：30 午饭<br />
12：00 快走4公里（日坛公园，<img src="http://www.cnblogs.com/Emoticons/QQ/14.gif"  alt="" />&nbsp;空气好）<br />
两遍第8套，50个俯卧撑。<br />
继续工作<br />
<br />
下班前<br />
两遍第8套，50个俯卧撑。<br />
go home！<br />
<br />
周末（一般是周六）<br />
爬山西郊或者说北郊（香山八大处往西往北的野山，东山，小五台...)一般是4个小时左右<br />
<br />
呵呵！<br />
欢迎大家都来说说自己的健身/活动情况。</p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/1006671.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42127/" target="_blank">[新闻]谷歌十年创新路</a>]]></description></item><item><title>论System.Data.Objects的死掉</title><link>http://www.cnblogs.com/mysoft/archive/2007/12/06/985659.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 06 Dec 2007 09:37:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2007/12/06/985659.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/985659.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2007/12/06/985659.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/985659.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/985659.html</trackback:ping><description><![CDATA[<p>&nbsp; 如果你之前有试用了VS2008Beta，还尝鲜了ADO.NET Entity Framework(下称EF)，做过了几个Demo而且现在又卸载了Beta装上了VS2008RTM，那么恭喜你，你之前的那些EF工程就无法正常编译了（可以正常打开的）。<br />
&nbsp; 我在安装完RTM后，想再继续EF可在新建Project模板中已经没有了ADO.NET Entity Data Model模板(添加后就回生成一个<font face="Courier New">edmx</font>文件，其实是xml)，一开始想到可能需要重新安装（我的VS2005的模板老是丢失特别是Ajax和Web Project），卸载再SetUp 竟然提示：<br />
&nbsp;&nbsp; <img alt="" src="http://www.cnblogs.com/images/cnblogs_com/mysoft/Fail.jpg" border="0" /><br />
&nbsp; 继续打开项目，编译就会提示了<font face="Courier New">System.Data.Objects,<font face="Courier New">System.Data.Entity ...的找不到。<br />
&nbsp; 查看资料：<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a class="headermaintitle" id="bp___v___bt___BlogTitle" href="http://blogs.msdn.com/adonet/default.aspx">ADO.NET team blog</a>&nbsp; <a class="headermaintitle" id="bp___v___bt___BlogTitle" href="http://blogs.msdn.com/data/default.aspx">Data</a><br />
&nbsp; 人家说了，只是对应与VS2008Beta2.而且EF版本也只是beta2，之前一直以为EF正式版会随着VS2008RTM可现在看来不是这样。那要等到什么时间呢？<br />
&nbsp; 大概看了下Linq,EF的东东，个人比较喜爱采用edmx来配置，因为更灵活，从这个角度说采用dbml,layout,cs的方式要弱一点。<br />
&nbsp; 可为什么EF没有在VS08中？我想不明白。</font></font></p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/985659.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42126/" target="_blank">[新闻]十年回顾：Google的互联网经济</a>]]></description></item><item><title>周末游记--第一次游圆明园</title><link>http://www.cnblogs.com/mysoft/archive/2007/12/06/985181.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 06 Dec 2007 05:47:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2007/12/06/985181.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/985181.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2007/12/06/985181.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/985181.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/985181.html</trackback:ping><description><![CDATA[<p><img alt="" src="http://my6400.javaeye.com/images/forum/smiles/icon_biggrin.gif" /> (*^__^*) 嘻嘻&#8230;&#8230; 周日去了趟圆明园。我可是办了公园年票的(花了偶200大洋啊！).一个字累！太累了。 <br />
有些朋友可能知道，我住在北3环边上,那圆明园在在北5环边上，猜我怎么去的？咳咳--当然是走着去啦！没吓着吧？搜狗地图量了一下，直线距离是5.4公里。呵呵！ <br />
<br />
之前一直以为是颐和园要大，没想到错了！一查资料，颐和园4400亩，圆明园5200亩。我全部走遍了。那叫一个累！带了相机拍了有500张pic，(*^__^*) 嘻嘻&#8230;&#8230;数码的又不怕浪费胶卷！ <br />
到了下午2点，肚子也饿的咕咕叫了。该回了。怎么回呢？当然是走着回了，跟来时一样，穿过北大校园，再走一段就ok了。 <br />
到家，偶MM给我热了牛肉汤，吃过就睡着了，实在太累了。 <br />
后来测算了一下我的速度，5.7公里我走了40分钟。呵呵！ <br />
年轻人嘛！<img alt="" src="http://my6400.javaeye.com/images/forum/smiles/icon_lol.gif" /> <br />
<br />
附图：<img alt="" src="http://www.cnblogs.com/images/cnblogs_com/mysoft/S1059055.JPG" border="0" /></p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/985181.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42126/" target="_blank">[新闻]十年回顾：Google的互联网经济</a>]]></description></item><item><title>杂谈vs2008--（把我之前的一篇文章转过来）</title><link>http://www.cnblogs.com/mysoft/archive/2007/12/06/985162.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 06 Dec 2007 05:38:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2007/12/06/985162.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/985162.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2007/12/06/985162.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/985162.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/985162.html</trackback:ping><description><![CDATA[<p>微软在2007年11月19日正式发布Visual Studio 2008 RTM(中文版可能要到明年2月份吧，个人猜测是在等待SQL2008和Server2008，届时将会一起发布！)。忍不住，赶紧整了一个。我安装的是RTM 试用版（90天），Team Suite。由于之前在用Beta2 ，严格安装Scott的advice，先行卸载了全部相关Component，Reboot进行了全新安装。一路next，没有出现任何问题。我的VS2005还在同一个本子上。</p>
<p>之前微软也说了vs2008的N个New Features。 <br />
1 Multi-Targeting Support （多定向支持）。 <br />
简单说就是你可以选择项目（project）的.net Framework 的editon，2.0/3.0/3.5 。同一个解决方案（Solution）中不同Project可以是不同的Framework版本。 <br />
试用结果：支持还是比较完美的。 <br />
2 ASP.NET AJAX and JavaScript Support。 <br />
这个就比较厉害了。之前一直苦于没有好的JavaScript 编辑工具，这下好了，连智能提示（Intellisense）都那么强大。AJAX没什么好说的，在Vs2005的时候，微软就发布了一个官方的ASP.NET Ajax 1.0,不过那是以package的形式。现在直接放到了.net Framework3.0中了。 <br />
3 Web Designer and CSS Support(Web设计器和CSS支持) <br />
这个比起2，我感觉是更厉害的。我们知道微软为了和 Adobe争抢Web设计这个大蛋糕，在今年7月份，发布了Expression Studio（外界称之为微软4剑客）。其中的Expression Web（就是以前在Office中的Frontpage，我一直这样认为）的直接竞争对手产品就是我们所熟知的 Dereamwaver。这次呢，据说和VS2008之同一个设计器。感觉这是微软向Adobe又打了一记重拳。而且css也有了智能提示。确实很cool。 <br />
4 Linq <br />
这个比较难以说清楚。这么说吧，一直以来，就存在这样一个问题。在数据库中（关系数据库，目前我们接触的大多数是这样），数据是一条条的record，而我们在coding的时候需要更多的去关注业务逻辑（Business Logic），而且更想(更习惯)把数据以对象（object）的形式展示。之前呢，微软一直不肯推出自己的O/RM的框架（或者说是解决方案）。他有他的想法(想卖更多的SQL数据库，(*^__^*) 嘻嘻&#8230;&#8230;)。致使在.Net的开发中出现了一大批框架（代码生成器,DataAccess 层等等）。现在（在vs2008中）呢？微软提供了一个容器，这个容器负责和数据库打交道，实现了由obect到db的"通讯",使得我们可以在coding的时候直接操作object。比起先前的直接使用ADO.NET，性能如何呢？一直以来我也没有找到好的测试方式。不过可以肯定的，至少会影响一部分人的开发方式。</p>
 <img src ="http://www.cnblogs.com/mysoft/aggbug/985162.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42126/" target="_blank">[新闻]十年回顾：Google的互联网经济</a>]]></description></item><item><title>感谢</title><link>http://www.cnblogs.com/mysoft/archive/2006/12/08/586778.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Fri, 08 Dec 2006 13:00:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/12/08/586778.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/586778.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/12/08/586778.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/586778.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/586778.html</trackback:ping><description><![CDATA[&nbsp; 在这里落户是去年5月，那会我还在学校。毕业后来京，也一年多了。时光匆匆啊！<br>&nbsp; 首先感谢园长dudu,提供了宝贵的空间。<br>&nbsp;&nbsp;还有园子里的兄弟姐妹们（兄弟较多），让我在技术上有了提高。--至今，园子仍是国内.net技术的权威站点。<br>&nbsp;&nbsp;这里，记载了我一路走来的点点滴滴（尽管篇数不多），留下了成长过程的印记。<br>&nbsp;&nbsp;可是今天由于种种原因，要离开了。<br>&nbsp;<br>&nbsp; 园子的成长见证了国内web2的开始发展壮大的过程，对园子的方向我也很关注，dudu也在不懈地探索。<br>&nbsp; 在此，祝园子越来越好，祝福dudu ！<br>&nbsp;<br>&nbsp;麻烦dudu把账户关掉，谢谢!<br>&nbsp;<br>&nbsp; 
 <img src ="http://www.cnblogs.com/mysoft/aggbug/586778.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42123/" target="_blank">[新闻]Google 10周年大事记</a>]]></description></item><item><title>What hapens when u google</title><link>http://www.cnblogs.com/mysoft/archive/2006/08/29/489720.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Tue, 29 Aug 2006 11:26:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/08/29/489720.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/489720.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/08/29/489720.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/489720.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/489720.html</trackback:ping><description><![CDATA[摘要: What hapens when u google?<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/mysoft/archive/2006/08/29/489720.html'>阅读全文</a><img src ="http://www.cnblogs.com/mysoft/aggbug/489720.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42122/" target="_blank">[新闻]Google上下二十年</a>]]></description></item><item><title>DataAccess 学习(3)——不能不说的SQLHelper(第三节) </title><link>http://www.cnblogs.com/mysoft/archive/2006/08/10/473448.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 10 Aug 2006 08:01:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/08/10/473448.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/473448.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/08/10/473448.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/473448.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/473448.html</trackback:ping><description><![CDATA[<span style="FONT-SIZE: 10pt">现在来看SQLHelper05.<br>主要使用Command对象来完成各种操作。特别是ExecuteNonQuery，ExecuteReader和ExecuteScalar方法。</span><br>1 先看ExecuteNonQuery部分.<br>&nbsp;
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080">&nbsp;1</span><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;ExecuteNonQuery(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;connectionString,&nbsp;CommandType&nbsp;cmdType,&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;cmdText,&nbsp;</span><span style="COLOR: #0000ff">params</span><span style="COLOR: #000000">&nbsp;SqlParameter[]&nbsp;commandParameters)<br></span><span style="COLOR: #008080">&nbsp;2</span><span style="COLOR: #000000"><img id=Codehighlighter1_153_518_Open_Image onclick="this.style.display='none'; Codehighlighter1_153_518_Open_Text.style.display='none'; Codehighlighter1_153_518_Closed_Image.style.display='inline'; Codehighlighter1_153_518_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_153_518_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_153_518_Closed_Text.style.display='none'; Codehighlighter1_153_518_Open_Image.style.display='inline'; Codehighlighter1_153_518_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_153_518_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_153_518_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">&nbsp;3</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlCommand&nbsp;cmd&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlCommand();<br></span><span style="COLOR: #008080">&nbsp;4</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;(SqlConnection&nbsp;conn&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlConnection(connectionString))<br></span><span style="COLOR: #008080">&nbsp;5</span><span style="COLOR: #000000"><img id=Codehighlighter1_291_508_Open_Image onclick="this.style.display='none'; Codehighlighter1_291_508_Open_Text.style.display='none'; Codehighlighter1_291_508_Closed_Image.style.display='inline'; Codehighlighter1_291_508_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_291_508_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_291_508_Closed_Text.style.display='none'; Codehighlighter1_291_508_Open_Image.style.display='inline'; Codehighlighter1_291_508_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_291_508_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_291_508_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">&nbsp;6</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrepareCommand(cmd,&nbsp;conn,&nbsp;</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">,&nbsp;cmdType,&nbsp;cmdText,&nbsp;commandParameters);<br></span><span style="COLOR: #008080">&nbsp;7</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;val&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;cmd.ExecuteNonQuery();<br></span><span style="COLOR: #008080">&nbsp;8</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmd.Parameters.Clear();<br></span><span style="COLOR: #008080">&nbsp;9</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;val;<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;ExecuteNonQuery(SqlConnection&nbsp;connection,&nbsp;CommandType&nbsp;cmdType,&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;cmdText,&nbsp;</span><span style="COLOR: #0000ff">params</span><span style="COLOR: #000000">&nbsp;SqlParameter[]&nbsp;commandParameters)<br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img id=Codehighlighter1_674_926_Open_Image onclick="this.style.display='none'; Codehighlighter1_674_926_Open_Text.style.display='none'; Codehighlighter1_674_926_Closed_Image.style.display='inline'; Codehighlighter1_674_926_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_674_926_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_674_926_Closed_Text.style.display='none'; Codehighlighter1_674_926_Open_Image.style.display='inline'; Codehighlighter1_674_926_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_674_926_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_674_926_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlCommand&nbsp;cmd&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlCommand();<br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top><br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrepareCommand(cmd,&nbsp;connection,&nbsp;</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">,&nbsp;cmdType,&nbsp;cmdText,&nbsp;commandParameters);<br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;val&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;cmd.ExecuteNonQuery();<br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmd.Parameters.Clear();<br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;val;<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;ExecuteNonQuery(SqlTransaction&nbsp;trans,&nbsp;CommandType&nbsp;cmdType,&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;cmdText,&nbsp;</span><span style="COLOR: #0000ff">params</span><span style="COLOR: #000000">&nbsp;SqlParameter[]&nbsp;commandParameters)<br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img id=Codehighlighter1_1078_1335_Open_Image onclick="this.style.display='none'; Codehighlighter1_1078_1335_Open_Text.style.display='none'; Codehighlighter1_1078_1335_Closed_Image.style.display='inline'; Codehighlighter1_1078_1335_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_1078_1335_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1078_1335_Closed_Text.style.display='none'; Codehighlighter1_1078_1335_Open_Image.style.display='inline'; Codehighlighter1_1078_1335_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_1078_1335_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_1078_1335_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlCommand&nbsp;cmd&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlCommand();<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrepareCommand(cmd,&nbsp;trans.Connection,&nbsp;trans,&nbsp;cmdType,&nbsp;cmdText,&nbsp;commandParameters);<br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">&nbsp;val&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;cmd.ExecuteNonQuery();<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmd.Parameters.Clear();<br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;val;<br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
<br><span style="FONT-SIZE: 10pt">可以看到以上3个方法除参数外,是完全一样的.都是调用PrepareCommand,返回ExecuteNonQuery的执行结果.参数不同应该是为了扩展方便吧.</span><br>2&nbsp; 数据获取部分,也叫他查询部分.<br>
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080">&nbsp;1</span><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">&nbsp;SqlDataReader&nbsp;ExecuteReader(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;connectionString,&nbsp;CommandType&nbsp;cmdType,&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;cmdText,&nbsp;</span><span style="COLOR: #0000ff">params</span><span style="COLOR: #000000">&nbsp;SqlParameter[]&nbsp;commandParameters)<br></span><span style="COLOR: #008080">&nbsp;2</span><span style="COLOR: #000000"><img id=Codehighlighter1_154_666_Open_Image onclick="this.style.display='none'; Codehighlighter1_154_666_Open_Text.style.display='none'; Codehighlighter1_154_666_Closed_Image.style.display='inline'; Codehighlighter1_154_666_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_154_666_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_154_666_Closed_Text.style.display='none'; Codehighlighter1_154_666_Open_Image.style.display='inline'; Codehighlighter1_154_666_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_154_666_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_154_666_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">&nbsp;3</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlCommand&nbsp;cmd&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlCommand();<br></span><span style="COLOR: #008080">&nbsp;4</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlConnection&nbsp;conn&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlConnection(connectionString);<br></span><span style="COLOR: #008080">&nbsp;5</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;6</span><span style="COLOR: #000000"><img id=Codehighlighter1_301_557_Open_Image onclick="this.style.display='none'; Codehighlighter1_301_557_Open_Text.style.display='none'; Codehighlighter1_301_557_Closed_Image.style.display='inline'; Codehighlighter1_301_557_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_301_557_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_301_557_Closed_Text.style.display='none'; Codehighlighter1_301_557_Open_Image.style.display='inline'; Codehighlighter1_301_557_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_301_557_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_301_557_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">&nbsp;7</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrepareCommand(cmd,&nbsp;conn,&nbsp;</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">,&nbsp;cmdType,&nbsp;cmdText,&nbsp;commandParameters);<br></span><span style="COLOR: #008080">&nbsp;8</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlDataReader&nbsp;rdr&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;cmd.ExecuteReader(CommandBehavior.CloseConnection);<br></span><span style="COLOR: #008080">&nbsp;9</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmd.Parameters.Clear();<br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;rdr;<br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img id=Codehighlighter1_589_656_Open_Image onclick="this.style.display='none'; Codehighlighter1_589_656_Open_Text.style.display='none'; Codehighlighter1_589_656_Closed_Image.style.display='inline'; Codehighlighter1_589_656_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_589_656_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_589_656_Closed_Text.style.display='none'; Codehighlighter1_589_656_Open_Image.style.display='inline'; Codehighlighter1_589_656_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_589_656_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_589_656_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">14</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;conn.Close();<br></span><span style="COLOR: #008080">15</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">throw</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">16</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">17</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">18</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;ExecuteScalar(</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;connectionString,&nbsp;CommandType&nbsp;cmdType,&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;cmdText,&nbsp;</span><span style="COLOR: #0000ff">params</span><span style="COLOR: #000000">&nbsp;SqlParameter[]&nbsp;commandParameters)<br></span><span style="COLOR: #008080">19</span><span style="COLOR: #000000"><img id=Codehighlighter1_822_1200_Open_Image onclick="this.style.display='none'; Codehighlighter1_822_1200_Open_Text.style.display='none'; Codehighlighter1_822_1200_Closed_Image.style.display='inline'; Codehighlighter1_822_1200_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_822_1200_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_822_1200_Closed_Text.style.display='none'; Codehighlighter1_822_1200_Open_Image.style.display='inline'; Codehighlighter1_822_1200_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_822_1200_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_822_1200_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">20</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlCommand&nbsp;cmd&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlCommand();<br></span><span style="COLOR: #008080">21</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">using</span><span style="COLOR: #000000">&nbsp;(SqlConnection&nbsp;connection&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlConnection(connectionString))<br></span><span style="COLOR: #008080">22</span><span style="COLOR: #000000"><img id=Codehighlighter1_966_1190_Open_Image onclick="this.style.display='none'; Codehighlighter1_966_1190_Open_Text.style.display='none'; Codehighlighter1_966_1190_Closed_Image.style.display='inline'; Codehighlighter1_966_1190_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_966_1190_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_966_1190_Closed_Text.style.display='none'; Codehighlighter1_966_1190_Open_Image.style.display='inline'; Codehighlighter1_966_1190_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_966_1190_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_966_1190_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">23</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrepareCommand(cmd,&nbsp;connection,&nbsp;</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">,&nbsp;cmdType,&nbsp;cmdText,&nbsp;commandParameters);<br></span><span style="COLOR: #008080">24</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;val&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;cmd.ExecuteScalar();<br></span><span style="COLOR: #008080">25</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmd.Parameters.Clear();<br></span><span style="COLOR: #008080">26</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;val;<br></span><span style="COLOR: #008080">27</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">28</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">29</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;ExecuteScalar(SqlConnection&nbsp;connection,&nbsp;CommandType&nbsp;cmdType,&nbsp;</span><span style="COLOR: #0000ff">string</span><span style="COLOR: #000000">&nbsp;cmdText,&nbsp;</span><span style="COLOR: #0000ff">params</span><span style="COLOR: #000000">&nbsp;SqlParameter[]&nbsp;commandParameters)<br></span><span style="COLOR: #008080">30</span><span style="COLOR: #000000"><img id=Codehighlighter1_1357_1608_Open_Image onclick="this.style.display='none'; Codehighlighter1_1357_1608_Open_Text.style.display='none'; Codehighlighter1_1357_1608_Closed_Image.style.display='inline'; Codehighlighter1_1357_1608_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_1357_1608_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1357_1608_Closed_Text.style.display='none'; Codehighlighter1_1357_1608_Open_Image.style.display='inline'; Codehighlighter1_1357_1608_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id=Codehighlighter1_1357_1608_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.cnblogs.com/images/dot.gif"></span><span id=Codehighlighter1_1357_1608_Open_Text><span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">31</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SqlCommand&nbsp;cmd&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">&nbsp;SqlCommand();<br></span><span style="COLOR: #008080">32</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrepareCommand(cmd,&nbsp;connection,&nbsp;</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">,&nbsp;cmdType,&nbsp;cmdText,&nbsp;commandParameters);<br></span><span style="COLOR: #008080">33</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">object</span><span style="COLOR: #000000">&nbsp;val&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;cmd.ExecuteScalar();<br></span><span style="COLOR: #008080">34</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmd.Parameters.Clear();<br></span><span style="COLOR: #008080">35</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;val;<br></span><span style="COLOR: #008080">36</span><span style="COLOR: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></div>
<span style="FONT-SIZE: 10pt">可以看到同以前的某个版本一样,采用了Command对象的ExecuteReader()方法来获取数据.另外,使用using语句,自动释放用来存储不再需要的对象的内存。需要注意的是，该对象类型必须实现<mshelp:link tabIndex=0 keywords="T:System.IDisposable">IDisposable</mshelp:link> 接口。此接口提供了 <mshelp:link tabIndex=0 keywords="M:System.IDisposable.Dispose">Dispose</mshelp:link> 方法，此方法用来释放此对象的资源,与try/catch语句结合使用可以达到很好的效果。有时必须使用try/catch，比如需要得到数据库回滚值。</span><br><br><span style="FONT-SIZE: 10pt">&nbsp; 好，现写这些。</span><br><span style="FONT-SIZE: 10pt">&nbsp; 当然，里面还有缓存部分等，放在另外的部分和其他内容一起写了。<br></span><br>下载：<a href="/mysoft/admin/SQLHelper05.rar">SQLHelper05.rar</a><br>
 <img src ="http://www.cnblogs.com/mysoft/aggbug/473448.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42120/" target="_blank">[新闻]中华英才网面临外资吞并</a>]]></description></item><item><title>DataAccess 学习(2)——合理使用.NET数据提供程序</title><link>http://www.cnblogs.com/mysoft/archive/2006/08/03/466896.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 03 Aug 2006 08:27:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/08/03/466896.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/466896.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/08/03/466896.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/466896.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/466896.html</trackback:ping><description><![CDATA[<p style="FONT-SIZE: 10pt">1&nbsp; 老问题，DataReader还是DataSet<br>&nbsp; 运用DataReader类的情况。<br>&nbsp;A 读取的数据必须是新的，所以在每次需要数据的时候，你都必须从数据库读取。创建一个DataReader类不会消耗很多内存，不过随着负荷的增加，DataSet上的性能也会很快地提高。<br>B 对每行数据的需求很简单。该情况的最好的例子就是简单地将DataReader绑定到一个Web控件，如DataGrid或DropDownList。<br>C只需要从数据库中以只向前的(forward-only) 、只读的形式来存取XML数据。在这种情况下，可以用SQLCommand对象的ExcecuteXmlReader()方法来得到一个XmlReader类（相当于XML版的DataReader）。这就需要一个运用FOR XML子句的SQL Server查询，或者一个包含有效XML的ntext字段。<br><br>在下面的情况，你应该考虑运用DataSet类：<br>&nbsp;A&nbsp;&nbsp; 构建了一个Web service，它运用的数据是你作为返回值读取的数据。因为DataReader类必须保持到数据库的连接，所以它们不能被序列化到XML中，也不能被发送给一个Web service的调用者。<br>B&nbsp;&nbsp; 需要排序或筛选数据。在运用一个DataView对象（呈现为DataTable类的DefaultView属性，它包含一个DataSet类）来排序或筛选数据前，我们先试着用SQL查询（如WHERE和ORDER BY语句）来实现这些功能，并运用更轻量级、更快的DataReader类。然而，有时侯用这种方法是不行的，或者当你需要多次地对数据进行排序或筛选时就不能用DataReader。<br>C&nbsp;&nbsp; 针对同一请求，需要多次遍历数据。只能在DataReader中循环一次。如果你想将多个ServerControl类绑定到同一个数据集，那么选择DataSet就更好。DataReader类不能被绑定到多个ServerControl类，因为它是只向前读取的。在这种情况下，如果要使用DataReader，必须从数据库读取两次数据。<br>D&nbsp;&nbsp; 需要存储数据，而后续的页面请求可能会用到的这些数据。如果数据只被请求它的专门的人使用，你可以将DataSet类保存在一个Session变量中。如果数据可以被任何人访问，那么你可以将它保存在一个Application变量中，或保存在Cache中（我建议使用后一种方法，因为它支持时间期限和回调（callback））。因为DataReader类必须一直打开对数据库的连接，而且它一次只能保存一行数据，所以它们不能在跨页面请求中被保存。<br>E&nbsp;&nbsp;&nbsp; 需要对一个结果集的每个元素实现特殊的、耗时的功能。例如，如果你从一个数据库读取一列邮政编码，并想通过调用一个Web service来得到每个地区的详细的天气状况信息，那么选择DataSet就会更好。这是因为，当你在用DataReader类时，在关闭DataReader类前，与数据库的连接不会被释放回连接池。在数千页面请求之间潜在的一个很小的延时都会造成Web应用程序的很高的访问量，从而就会消耗完可用的连接。相反，DataSet可以在前端读取所有的数据，并可以马上关闭与数据库的连接，将它返回到连接池，因此其它的页面请求就可以用这个连接了。<br><br>2 DataReader使用需要注意的几个问题。<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1)在访问相关Command的任何输出参数之前，必须关闭DataReader。<br><br>　　2) 完成读数据之后总是要关闭DataReader。如果使用Connection只是用于返回DataReader，那么关闭DataReader之后立刻关闭它。 <br><br>　　另外一个显式关闭Connection的方法是将CommandBehavior.CloseConnection传递给ExecuteReader方法，以确保相关的连接在关闭DataReader时被关闭。如果从一个方法返回DataReader，而且不能控制DataReader或相关连接的关闭，则这样做特别有用。 <br><br>　　1) <span style="BACKGROUND-COLOR: #ffff00">不能在层之间远程访问DataReader。DataReader是为已连接好的数据访问设计的。</span> <br><br>　　2) 当访问列数据时，使用类型化访问器，例如，GetString、GetInt32等。这使您不用进行将GetValue返回的Object强制转换成特定类型所需的处理。 <br>　　3) 一个单一连接每次只能打开一个DataReader。在ADO中，如果打开一个单一连接，并且请求两个使用只进、只读游标的记录集，那么ADO会在游标生存期内隐式打开第二个、未池化的到数据存储区的连接，然后再隐式关闭该连接。对于ADO.NET，&#8220;秘密&#8221;完成的动作很少。如果想在相同的数据存储区上同时打开两个DataReaders，就必须显式创建两个连接，每个DataReader一个。这是ADO.NET为池化连接的使用提供更多控制的一种方法。 <br><br>　　4) 默认情况下，DataReader每次Read时都要将整行加载到内存。这允许在当前行内随机访问列。如果不需要这种随机访问，为了提高性能，就将CommandBehavior.SequentialAccess传递给ExecuteReader调用。这将DataReader的默认行为更改为仅在请求时将数据加载到内存。注意，CommandBehavior.SequentialAccess要求顺序访问返回的列。也就是说，一旦读过返回的列，就不能再读它的值了。 <br><br>　　5) 如果已经完成读取来自DataReader的数据，但仍然有大量挂起的未读结果，就在调用DataReader的Close之前先调用Command的Cancel。调用DataReader的Close会导致在关闭游标之前检索挂起的结果并清空流。调用Command的Cancel会放弃服务器上的结果，这样，DataReader在关闭的时候就不必读这些结果。如果要从Command返回输出参数，还要调用Cancel放弃它们。如果需要读取任何输出参数，不要调用Command的Cancel，只要调用DataReader的Close即可。<o:p></o:p></p>
<p style="FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></p>
 <img src ="http://www.cnblogs.com/mysoft/aggbug/466896.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42119/" target="_blank">[新闻]软件收入百强张榜 华为中兴海尔列前三</a>]]></description></item><item><title>DataAccess 学习(1)——ADO.NET基础</title><link>http://www.cnblogs.com/mysoft/archive/2006/08/03/466510.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 03 Aug 2006 03:10:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/08/03/466510.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/466510.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/08/03/466510.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/466510.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/466510.html</trackback:ping><description><![CDATA[<p style="FONT-SIZE: 10pt">&nbsp; </p>
<p style="FONT-SIZE: 10pt">首先是真诚的表示歉意，<br>得前段时间，有说到自己写的关于DataAccess的东西，而且有Demo供下载的。可后来由于种种原因没有贴出，在此向各位留言关注的朋友致歉。<br>并在接下来的几篇blog中尽量说明白，说清楚DataAcces这个问题。当然，也只是个人的理解和观点，不成熟之处，希望指出指正。<br><br>需要说明的是，这里DataAccess中的Data是指DataBase中的数据，特别是MIS系统，其他如PocketPC，IC数据采集等等不在这一系列中，这里不做讨论。<br>MS在ADO.NET中为我们提供了强大的数据操作功能。先来看看ADO.NET的结构。<br><img height=318 src="http://www.cnblogs.com/images/cnblogs_com/mysoft/Architect.jpg" width=578 border=0><br>&nbsp;1先看DataSet<br><img height=346 src="http://www.cnblogs.com/images/cnblogs_com/mysoft/DataSet.jpg" width=354 border=0><br>DataSet 对象是支持 ADO.NET 的断开式、分布式数据方案的核心对象。DataSet 是数据的内存驻留表示形式，无论数据源是什么，它都会提供一致的关系编程模型。它可以用于多种不同的数据源，用于 XML 数据，或用于管理应用程序本地的数据。DataSet 表示包括相关表、约束和表间关系在内的整个数据集。下图将显示 DataSet 对象模型。<br><br>DataSet 是从数据源中检索到的数据在内存中的缓存。也可以说，DataSet是数据在内存中的表现形式。DataSet 中的方法和对象与关系数据库模型中的方法和对象一致。这也使得我们可以以对关系数据库的理解和掌握来理解和操作DataSet。</p>
<p style="FONT-SIZE: 10pt">2 .NET数据提供程序，</p>
<p style="FONT-SIZE: 10pt" align=left>下表概括了组成 .NET Framework 数据提供程序的四个核心对象。</p>
<p style="FONT-SIZE: 10pt">
<table cellPadding=0 width="98%" border=1>
    <tbody>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>对象 </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>说明 </p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>Connection</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>建立与特定数据源的连接。所有 Connection 对象的基类均为 DbConnection 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>Command</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>对数据源执行命令。公开 Parameters，并且可以通过 Connection 在 Transaction 的范围内执行。所有 Command 对象的基类均为 DbCommand 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>DataReader</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>从数据源中读取只进且只读的数据流。所有 DataReader 对象的基类均为 DbDataReader 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>DataAdapter</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>用数据源填充 DataSet 并解析更新。所有 DataAdapter 对象的基类均为 DbDataAdapter 类。</p>
            </td>
        </tr>
    </tbody>
</table>
</p>
<p style="FONT-SIZE: 10pt" align=left>除上表列出的核心类之外，.NET Framework 数据提供程序还包含下表列出的类。</p>
<p style="FONT-SIZE: 10pt">
<table cellPadding=0 width="98%" border=1>
    <tbody>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>对象 </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>说明 </p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>Transaction</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>使您能够在数据源的事务中登记命令。所有 Transaction 对象的基类均为 DbTransaction 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>CommandBuilder</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>帮助器对象将自动生成 DataAdapter 的命令属性或将从存储过程派生参数信息并填充 Command 对象的 Parameters 集合。所有 CommandBuilder 对象的基类均为 DbCommandBuilder 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>ConnectionStringBuilder</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>帮助器对象为创建和管理 Connection 对象所使用的连接字符串的内容提供了一种简单的方法。所有 ConnectionStringBuilder 对象的基类均为 DbConnectionStringBuilder 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>参数</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>定义命令和存储过程的输入、输出和返回值参数。所有 Parameter 对象的基类均为 DbParameter 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>Exception</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>在数据源中遇到错误时返回。对于在客户端遇到的错误，.NET Framework 数据提供程序会引发 .NET Framework 异常。所有 Exception 对象的基类均为 DbException 类。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>Error</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>公开数据源返回的警告或错误中的信息。 </p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>ClientPermission</p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>为 .NET Framework 数据提供程序代码访问安全属性而提供。所有 ClientPermission 对象的基类均为 DBDataPermission 类。</p>
            </td>
        </tr>
    </tbody>
</table>
</p>
<blockquote dir=ltr style="MARGIN-RIGHT: 0px">
<p style="FONT-SIZE: 10pt">下面具体来分析：<br>1&nbsp;SqlCommand 对象的使用：<br>&nbsp;&nbsp;private void Test()<br>&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strConn = "uid=sa;password=1;database=myTest;server=localhost ";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlConnection conn = new SqlConnection(strConn);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strSql = " SELECT * FROM Student";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.Open();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlCommand cmd = new SqlCommand(strSql, conn);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd.ExecuteNonQuery();&nbsp;//返回该命令所影响的行数<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;conn.Close();<br>}<br><br>您可以使用 ExecuteNonQuery 执行目录操作。例如，您可以使用它来查询数据库的结构或者创建数据库对象（例如表）。还可以通过执行 UPDATE、INSERT 或 DELETE 语句，在不使用 <a href="http://msdn.microsoft.com/library/CHS/cpref/html/frlrfsystemdatadatasetclasstopic.asp">DataSet</a> 的情况下，使用 ExecuteNonQuery 更改数据库中的数据。<br><span style="BACKGROUND-COLOR: yellow">对于 UPDATE、INSERT 和 DELETE 语句，返回值为该命令所影响的行数。对于所有其他 DML 语句，返回值都为 -1。如发生数据库回滚，也返回-1。对于 DDL 语句，比如 CREATE TABLE 或 ALTER TABLE，返回值为 0。</span><br><br>2 SqlDataReader 对象</p>
<p dir=ltr style="FONT-SIZE: 10pt" align=left>&nbsp;&nbsp;&nbsp; 得到SqlDataReader对象于实例化其它ADO.NET对象稍微有些不同。你必须对一个command对象调用ExecuteReaer方法，比如这样：<br>&nbsp;&nbsp;&nbsp; SqlDataReader rdr = cmd.ExecuteReader();<br>&nbsp;&nbsp; private void Test()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strConn = "uid=sa;password=1;database=myTest;server=localhost ";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlConnection conn = new SqlConnection(strConn);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strSql = " SELECT * FROM Student";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.Open();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlCommand cmd = new SqlCommand(strSql, conn);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlDataAdapter da = cmd.ExecuteReader(); // 返回一个IDataReader对象。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (myReader.Read())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(myReader.GetString(0));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; da.Close();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;conn.Close();<br>&nbsp; }</p>
</blockquote>
<p style="FONT-SIZE: 10pt">
<table cellPadding=0 width="98%" border=1>
    <tbody>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>名称 </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>说明 </p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left><a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref4/html/M_System_Data_IDbCommand_ExecuteReader.htm">IDbCommand.ExecuteReader () </a></p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>针对 Connection 执行 CommandText，并生成 IDataReader。 </p>
            <p style="FONT-SIZE: 10pt" align=left>由 .NET Compact Framework 支持。 </p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left><a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref4/html/M_System_Data_IDbCommand_ExecuteReader_1_5b81613a.htm">IDbCommand.ExecuteReader (CommandBehavior) </a></p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>针对 Connection 执行 CommandText，并使用 <a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref4/html/T_System_Data_CommandBehavior.htm">CommandBehavior</a> 值之一生成 IDataReader。 </p>
            <p style="FONT-SIZE: 10pt" align=left>由 .NET Compact Framework 支持。 </p>
            </td>
        </tr>
    </tbody>
</table>
</p>
<p style="FONT-SIZE: 10pt">二者的区别如下：<br>当 DataReader 处于使用中时，关联的 DbConnection 正忙于为 DataReader 服务。当处于此状态时，除了关闭 Connection 外，不能对其执行其他任何操作。除非调用 DataReader 的 Close 方法，否则会一直处于此状态。如果创建了 DataReader 并将 CommandBehavior 设置为 CloseConnection，则关闭 DataReader 会自动关闭此连接。</p>
<p style="FONT-SIZE: 10pt">3 DataAdapter 对象的使用：<br>以下是常用的 TableAdapter 方法和属性：</p>
<p style="FONT-SIZE: 10pt">
<table cellPadding=0 width="98%" border=1>
    <tbody>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>成员 </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>说明 </p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>TableAdapter.Fill </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>用 TableAdapter 的 SELECT 命令的结果填充 TableAdapter 的关联数据表。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>TableAdapter.Update </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>将更改发送回数据库。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>TableAdapter.GetData </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>返回一个用数据填充了的新 DataTable。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>TableAdapter.Insert </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>在数据表中创建新行。有关更多信息，请参见<a href="ms-help://MS.MSDNQTR.v80.chs/MS.MSDN.v80/MS.VisualStudio.v80.chs/dv_raddata/html/78ebbb43-c402-49cf-81da-0715289487bf.htm">如何：向数据表中添加行</a>。</p>
            </td>
        </tr>
        <tr>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>TableAdapter.ClearBeforeFill </p>
            </td>
            <td style="FONT-SIZE: 10pt" vAlign=top>
            <p style="FONT-SIZE: 10pt" align=left>确定数据表在您调用一个 Fill 方法之前是否被清空。</p>
            </td>
        </tr>
    </tbody>
</table>
</p>
<p style="FONT-SIZE: 10pt" align=left>使用适配器，可以读取、添加、更新和删除数据源中的记录。为使您可以指定每种操作的进行方式，适配器支持以下四个属性： <br>&#183;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SelectCommand &#8211; 引用某命令（SQL 语句或存储过程名称）从数据存储区检索行。<br>&#183;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InsertCommand &#8211; 引用某命令以便向数据存储区插入行。<br>&#183;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UpdateCommand &#8211; 引用某命令以便修改数据存储区中的行。<br>&#183;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DeleteCommand &#8211; 引用某命令以便从数据存储区删除行。</p>
<blockquote dir=ltr style="MARGIN-RIGHT: 0px">
<p style="FONT-SIZE: 10pt" align=left>&nbsp;private void Test()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strConn = "uid=sa;password=1;database=myTest;server=localhost ";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlConnection conn = new SqlConnection(strConn);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string strSql = " SELECT * FROM Student";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.Open();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataSet ds = new DataSet();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlDataAdapter dr;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dr.SelectCommand = new SqlCommand(strConn ,conn); // 这里是SelectCommand<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dr.Fill(ds);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.Close();<br>&nbsp;&nbsp;&nbsp; }</p>
</blockquote>
<p style="FONT-SIZE: 10pt">在TypedDataset形式的架构中，DataSet是最常用的。</p>
 <img src ="http://www.cnblogs.com/mysoft/aggbug/466510.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42119/" target="_blank">[新闻]软件收入百强张榜 华为中兴海尔列前三</a>]]></description></item><item><title>VS2005 常用快捷键</title><link>http://www.cnblogs.com/mysoft/archive/2006/08/02/466256.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Wed, 02 Aug 2006 14:57:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/08/02/466256.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/466256.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/08/02/466256.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/466256.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/466256.html</trackback:ping><description><![CDATA[转自 BlueMagic的blog<br><a style="FONT-SIZE: 10pt" name=part><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shift+Alt+Enter: 切换全屏编辑　　 <br><br>　　Ctrl+B,T / Ctrl+K,K: 切换书签开关 <br><br>　　Ctrl+B,N / Ctrl+K,N: 移动到下一书签 <br><br>　　Ctrl+B,P: 移动到上一书签 <br><br>　　Ctrl+B,C: 清除全部标签　　 <br><br>　　Ctrl+I: 渐进式搜索 <br><br>　　Ctrl+Shift+I: 反向渐进式搜索 <br><br>　　Ctrl+F: 查找 <br><br>　　Ctrl+Shift+F: 在文件中查找 <br><br>　　F3: 查找下一个 <br><br>　　Shift+F3: 查找上一个 <br><br>　　Ctrl+H: 替换 <br><br>　　Ctrl+Shift+H: 在文件中替换 <br><br>　　Alt+F12: 查找符号(列出所有查找结果)　　 <br><br>　　Ctrl+Shift+V: 剪贴板循环　　 <br><br>　　Ctrl+左右箭头键: 一次可以移动一个单词 <br><br>　　Ctrl+上下箭头键: 滚动代码屏幕，但不移动光标位置。 <br><br>　　Ctrl+Shift+L: 删除当前行 <br><br>　　Ctrl+M,M: 隐藏或展开当前嵌套的折叠状态 <br><br>　　Ctrl+M,L: 将所有过程设置为相同的隐藏或展开状态 <br><br>　　Ctrl+M,P: 停止大纲显示 <br><br>　　Ctrl+E,S: 查看空白 <br><br>　　Ctrl+E,W: 自动换行 <br><br>　　Ctrl+G: 转到指定行 <br><br>　　Shift+Alt+箭头键: 选择矩形文本 <br><br>　　Alt+鼠标左按钮: 选择矩形文本　　 <br><br>　　Ctrl+Shift+U: 全部变为大写 <br><br>　　Ctrl+U: 全部变为小写</a>　
<p style="FONT-SIZE: 10pt">　　Ctrl+J / Ctrl+K,L: 列出成员 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+空格键 / Ctrl+K,P: 参数信息 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,I: 快速信息　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+E,C / Ctrl+K,C: 注释选定内容 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+E,U / Ctrl+K,U: 取消选定注释内容　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,M: 生成方法存根 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,X: 插入代码段 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,S: 插入外侧代码　　 </p>
<p style="FONT-SIZE: 10pt">　　F12: 转到所调用过程或变量的定义　　 </p>
<p style="FONT-SIZE: 10pt">　　窗口快捷键　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,W: 浏览器窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,S: 解决方案管理器 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,C: 类视图 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,E: 错误列表 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,O: 输出视图 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,P: 属性窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,T: 任务列表 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,X: 工具箱 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,B: 书签窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,U: 文档大纲　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+D,B: 断点窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+D,I: 即时窗口　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Tab: 活动窗体切换　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+N: 新建项目 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+O: 打开项目 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+S: 全部保存 </p>
<p style="FONT-SIZE: 10pt">　　Shift+Alt+C: 新建类<br><br>Ctrl+Shift+A: 新建项 </p>
<p style="FONT-SIZE: 10pt">　　Shift+Alt+Enter: 切换全屏编辑　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+B,T / Ctrl+K,K: 切换书签开关 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+B,N / Ctrl+K,N: 移动到下一书签 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+B,P: 移动到上一书签 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+B,C: 清除全部标签　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+I: 渐进式搜索 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+I: 反向渐进式搜索 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+F: 查找 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+F: 在文件中查找 </p>
<p style="FONT-SIZE: 10pt">　　F3: 查找下一个 </p>
<p style="FONT-SIZE: 10pt">　　Shift+F3: 查找上一个 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+H: 替换 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+H: 在文件中替换 </p>
<p style="FONT-SIZE: 10pt">　　Alt+F12: 查找符号(列出所有查找结果)　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+V: 剪贴板循环　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+左右箭头键: 一次可以移动一个单词 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+上下箭头键: 滚动代码屏幕，但不移动光标位置。 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+L: 删除当前行 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+M,M: 隐藏或展开当前嵌套的折叠状态 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+M,L: 将所有过程设置为相同的隐藏或展开状态 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+M,P: 停止大纲显示 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+E,S: 查看空白 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+E,W: 自动换行 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+G: 转到指定行 </p>
<p style="FONT-SIZE: 10pt">　　Shift+Alt+箭头键: 选择矩形文本 </p>
<p style="FONT-SIZE: 10pt">　　Alt+鼠标左按钮: 选择矩形文本　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+U: 全部变为大写 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+U: 全部变为小写　<br>代码快捷键　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+J / Ctrl+K,L: 列出成员 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+空格键 / Ctrl+K,P: 参数信息 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,I: 快速信息　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+E,C / Ctrl+K,C: 注释选定内容 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+E,U / Ctrl+K,U: 取消选定注释内容　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,M: 生成方法存根 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,X: 插入代码段 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+K,S: 插入外侧代码　　 </p>
<p style="FONT-SIZE: 10pt">　　F12: 转到所调用过程或变量的定义　　 </p>
<p style="FONT-SIZE: 10pt">　　窗口快捷键　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,W: 浏览器窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,S: 解决方案管理器 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,C: 类视图 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,E: 错误列表 </p>
<p>　　Ctrl+W,O: 输出视图 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,P: 属性窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,T: 任务列表 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,X: 工具箱 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,B: 书签窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+W,U: 文档大纲　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+D,B: 断点窗口 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+D,I: 即时窗口　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Tab: 活动窗体切换　　 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+N: 新建项目 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+O: 打开项目 </p>
<p style="FONT-SIZE: 10pt">　　Ctrl+Shift+S: 全部保存 </p>
<p style="FONT-SIZE: 10pt">　　Shift+Alt+C: 新建类 </p>
<p>　　Ctrl+Shift+A: 新建项 <br></p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/466256.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42117/" target="_blank">[新闻]马云vs孙正义：两个“疯子”的对话</a>]]></description></item><item><title>什么是3G</title><link>http://www.cnblogs.com/mysoft/archive/2006/05/20/405177.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Sat, 20 May 2006 09:12:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/05/20/405177.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/405177.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/05/20/405177.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/405177.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/405177.html</trackback:ping><description><![CDATA[<font color=#006699>3G是英文3rdGeneration 的缩写，指第三代移动通信技术。相对第一代模拟<br>制式手机（1G）和第二代GSM 、TDMA等数字手机（2G），第三代手机一般地讲，<br>是指将无线通信与国际互联网等多媒体通信结合的新一代移动通信系统。它能够<br>处理图像、音乐、视频流等多种媒体形式，提供包括网页浏览、电话会议、电子<br>商务等多种信息服务。为了提供这种服务，无线网络必须能够支持不同的数据传<br>输速度，也就是说在室内、室外和行车的环境中能够分别支持至少2Mbps （兆字<br>节／每秒？84kbps（千字节／每秒）以及144kbps 的传输速度。</font>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 3G的技术标准</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 国际电信联盟（ITU ）在2000年5 月确定W —CDMA、CDMA2000和TDS —CDMA<br>三大主流无线接口标准，写入3G技术指导性文件《2000年国际移动通讯计划》<br>（简称IMT —2000）。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; W —CDMA</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 即WidebandCDMA，也称为CDMADirectSpread，意为宽频分码多重存取，其支<br>持者主要是以GSM 系统为主的欧洲厂商，日本公司也或多或少参与其中，包括欧<br>美的爱立信、阿尔卡特、*** 、朗讯、北电，以及日本的NTT 、富士通、夏普等<br>厂商。这套系统能够架设在现有的GSM 网络上，对于系统提供商而言可以较轻易<br>地过渡，而GSM 系统相当普及的亚洲对这套新技术的接受度预料会相当高。因此<br>W —CDMA具有先天的市场优势。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; CDMA2000</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; CDMA2000也称为CDMAMulti —Carrier ，由美国高通北美公司为主导提出，<br>摩托罗拉、Lucent和后来加入的韩国*** 都有参与，韩国现在成为该标准的主导<br>者。这套系统是从窄频CDMAOne 数字标准衍生出来的，可以从原有的CDMAOne 结<br>构直接升级到3G，建设成本低廉。但目前使用CDMA的地区只有日、韩和北美，所<br>以CDMA2000的支持者不如W —CDMA多。不过CDMA2000的研发技术却是目前各标准<br>中进度最快的，许多3G手机已经率先面世。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; TD—SCDMA</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 该标准是由中国大陆独自制定的3G标准，1999年6 月29日，中国原邮电部电<br>信科学技术研究院（大唐电信）向ITU 提出。该标准将智能无线、同步CDMA和软<br>件无线电等当今国际领先技术融于其中，在频谱利用率、对业务支持具有灵活性、<br>频率灵活性及成本等方面的独特优势。另外，由于中国内的庞大的市场，该标准<br>受到各大主要电信设备厂商的重视，全球一半以上的设备厂商都宣布可以支持TD<br>—SCDMA 标准。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 什么是2.5G</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 目前已经进行商业应用的2.5G移动通信技术是从2G迈向3G的衔接性技术，由<br>于3G是个相当浩大的工程，所牵扯的层面多且复杂，要从目前的2G迈向3G不可能<br>一下就衔接得上，因此出现了介于2G和3G之间的2.5G.HSCSD、WAP 、EDGE、蓝牙<br>（Bluetooth ）、EPOC等技术都是2.5G技术。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; HSCSD （高速电路交换数据服务）</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 这是GSM 网络的升级版本，HSCSD （HighSpeedCircuitSwitchedData）能够<br>透过多重时分同时进行传输，而不是只有单一时分而已，因此能够将传输速度大<br>幅提升到平常的二至三倍。目前新加坡M1与新加坡电讯的移动电话都采用HSCSD<br>系统，其传输速度能够达到57.6kbps.</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; WAP （无线应用通讯协议）</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; WAP （WirelessApplicationProtocol ）是移动通信与互联网结合的第一阶<br>段性产物。这项技术让使用者可以用手机之类的无线装置上网，透过小型屏幕遨<br>游在各个网站之间。而这些网站也必须以WML （无线标记语言）编写，相当于国<br>际互联网上的HTML（超文件标记语言）。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; Bluetooth （蓝牙）</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 蓝牙是一种短距的无线通讯技术，电子装置彼此可以透过蓝牙而连接起来，<br>传统的电线在这里就毫无用武之地了。透过芯片上的无线接收器，配有蓝牙技术<br>的电子产品能够在十公尺的距离内彼此相通，传输速度可以达到每秒钟1 兆字节。<br>以往红外线接口的传输技术需要电子装置在视线之内的距离，而现在有了蓝牙技<br>术，这样的麻烦也可以免除了。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 3G何时到来</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 日本移动通讯巨人NTTDoCoMo 已于10月1 日开通全球第一个3G服务，该服务<br>基于WCDMA 标准。</font></p>
<p><font color=#006699>&nbsp;&nbsp;&nbsp; 目前，亚洲成为3G发展最快的地区，欧洲紧随其次，美国由于不太热心而在<br>技术准备上远远落后。除了动作最快的日本和韩国，泰国、香港也已经发出3G牌<br>照。台湾即将发放3G牌照，预计内地在年底前发出3G牌照，市场预期将发行两到<br>三个牌照</font><br></p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/405177.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42116/" target="_blank">[新闻]消息称MySQL创始人已向Sun提交辞呈</a>]]></description></item><item><title>(写作计划)DataAccess 乱弹</title><link>http://www.cnblogs.com/mysoft/archive/2006/04/27/386499.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 27 Apr 2006 04:59:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/04/27/386499.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/386499.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/04/27/386499.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/386499.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/386499.html</trackback:ping><description><![CDATA[&nbsp; DataAccess数据访问，是大多数程序必须要面对和解决的。<br>&nbsp; 广义来讲，一切我们能看到的都是文件，都是数据。<br>&nbsp; 对于典型的MIS系统更是如此。<br><br>&nbsp;我计划把自己对于DataAcces方面的心得写下来。<br>&nbsp;首先说明，这不是纯理论，需要的可以参看一些书籍资料，<br>这里不谈。<br>当然是要结合语言与开发环境了（不然，也就是纯理论了<img height=20 src="http://www.cnblogs.com/Emoticons/QQ/16.gif" width=20 border=0>）。<br>计划是C# +VS2003的组合。<br><br><br>&nbsp; 
 <img src ="http://www.cnblogs.com/mysoft/aggbug/386499.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42115/" target="_blank">[新闻]谷歌Chrome浏览器即将更换LOGO颜色？</a>]]></description></item><item><title>使用Web 标准开发网站的理由</title><link>http://www.cnblogs.com/mysoft/archive/2006/04/20/380434.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 20 Apr 2006 09:24:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/04/20/380434.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/380434.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/04/20/380434.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/380434.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/380434.html</trackback:ping><description><![CDATA[<p>Web 标准使您能通过最少的工作，生成可被最广大受众访问的 Web 站点。Web 标准的承诺是：只需设计页面一次，即可让该页以完全相同的方式在任何现代的浏览器中显示和工作。例如，在按照标准生成以后，旨在在 Microsoft Internet Explorer 中以某种方式显示的页可在其他浏览器（如，Mozilla Firefox、Netscape Navigator、Opera、Camino 和 Safari）中以相同的方式显示，而无需完成任何额外的工作。 </p>
<p>Web 标准的一个额外好处是 — 使 Web 站点更易于为残疾人士访问。这是一个范围广泛的受众群体，包括视力衰退的中年人士，刚刚在滑雪时跌断胳膊的人士，以及完全失明的人士等。使用标准可避免无意中阻止那些具有暂时性或永久性身体残疾的人士访问 Web 页。</p>
<p>对于生成满足公共 Web 标准的 Web 站点而言，Microsoft ASP.NET 2.0 框架是最佳的框架。特别强调的是，ASP.NET 2.0 框架中的每个控件都按照 XHTML 和可访问性标准进行了全面的检查和测试。此外，Microsoft Visual Studio .NET 2005 还包含一些新工具，用于按照 XHTML 和可访问性标准验证 Web 页。 </p>
<p>本文的目的是为您提供有关 XHTML 和可访问性标准的概述，并说明如何利用 ASP.NET 2.0 和 Visual Studio .NET 2005 来满足这些标准。在本文的结尾，将分步演练以下功能，即创建能够同时满足 XHTML 和可访问性标准的 ASP.NET 2.0 Web 站点。</p>
<p>文章出处：<a href="http://www.microsoft.com/">http://www.microsoft.com</a><br></p>
<img src ="http://www.cnblogs.com/mysoft/aggbug/380434.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42101/" target="_blank">[新闻]淘宝网合并阿里妈妈 专家称阿里巴巴或有新战略</a>]]></description></item><item><title>XHTML标准的版本</title><link>http://www.cnblogs.com/mysoft/archive/2006/04/20/380411.html</link><dc:creator>梁广永【大海水】</dc:creator><author>梁广永【大海水】</author><pubDate>Thu, 20 Apr 2006 09:06:00 GMT</pubDate><guid>http://www.cnblogs.com/mysoft/archive/2006/04/20/380411.html</guid><wfw:comment>http://www.cnblogs.com/mysoft/comments/380411.html</wfw:comment><comments>http://www.cnblogs.com/mysoft/archive/2006/04/20/380411.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/mysoft/comments/commentRss/380411.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/mysoft/services/trackbacks/380411.html</trackback:ping><description><![CDATA[<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">有三个版本的</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.0</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">，它们分别对应三个版本的</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;HTML&nbsp;4.01</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">：</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp; <o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&#8226;&nbsp;XHTML&nbsp;1.0&nbsp;Transitional&nbsp;<br>&nbsp;<br>&#8226;&nbsp;XHTML&nbsp;1.0&nbsp;Strict&nbsp;<br>&nbsp;<br>&#8226;&nbsp;XHTML&nbsp;1.0&nbsp;Frameset&nbsp;<br>&nbsp;<o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">XHTML&nbsp;1.0&nbsp;Transitional&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">包含</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;HTML&nbsp;4.01&nbsp;Transitional&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">中的全部标记和属性。引入</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.0&nbsp;Transitional&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">标准的目的是，使现有</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;HTML&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">设计人员和开发人员无需经历太多的痛苦就能迁移到</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">。</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">XHTML&nbsp;1.0&nbsp;Strict&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">与</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.0&nbsp;Transitional&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">的不同之处在于，它在文档结构和表示形式之间实施了一种更为明显的分离。与</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.0&nbsp;Transitional&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">不同，</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">XHTML&nbsp;1.0&nbsp;Strict&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">强迫您使用层叠样式表来控制页的外观。</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">XHTML&nbsp;1.0&nbsp;Frameset&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">文档意在成为使用</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">标记将浏览器划分为多个框架的文档（</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">XHTML&nbsp;1.0&nbsp;Transitional&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">和</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;Strict&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">页不能包含</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">标记）。</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">W<st1:chmetcnv UnitName="C" SourceValue="3" HasSpace="False" Negative="False" NumberType="1" TCSC="0" w:st="on">3C</st1:chmetcnv>&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">还发布了</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.1&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">以作为推荐标准（</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">2001&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">年</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;5&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">月</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;31&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">日）。</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">XHTML&nbsp;1.1&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">非常类似于</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.0&nbsp;Strict</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">。二者的主要区别在于，可以用附加模块扩展</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.1&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">以便支持新元素。例如，可以生成特定的</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;1.1&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">页，该页还包含</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;MathML</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">（数学标记语言）、</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">SVG</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">（可伸缩向量语言）或创建的自定义模块中的元素。</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">最后，</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">W<st1:chmetcnv UnitName="C" SourceValue="3" HasSpace="False" Negative="False" NumberType="1" TCSC="0" w:st="on">3C</st1:chmetcnv>&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">正在制订</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;2.0&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">推荐标准。因为</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;XHTML&nbsp;2.0&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">仍然处于起草阶段，并且当前没有</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;Web&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">浏览器支持该标准，所以我们不在本文讨论它。</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;<o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=left><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">ASP.NET&nbsp;2.0&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">框架和</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbsp;Visual&nbsp;Studio&nbsp;.NET&nbsp;2005&nbsp;</span><span style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">面向</span><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 150%; FONT-FAMILY: Verdana; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&nbs