
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x53;&#x51;&#x4C;&#x20;&#x53;&#x65;&#x72;&#x76;&#x65;&#x72;&#x6570;&#x636E;&#x5E93;&#x41;&#x44;&#x4F;&#x2E;&#x4E;&#x45;&#x54;&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x6A21;&#x578B;&#x4F7F;&#x7528;&#x793A;&#x4F8B;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x31;&#x32;&#x2D;&#x30;&#x38;&#x2D;&#x32;&#x39;&#x20;&#x31;&#x31;&#x3A;&#x30;&#x30;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=16">&#x57;&#x69;&#x6E;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x4E00;&#x3001;&#x6DFB;&#x52A0;SQL Server&#x6570;&#x636E;&#x5E93;ADO.NET&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x6A21;&#x578B;<br/>&#x2460;.&#x6DFB;&#x52A0;&#x65B0;&#x9879;&#x5E76;&#x9009;&#x62E9;&#34;ADO.NET&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x6A21;&#x578B;&#34;&#xFF1A;<br/>&#x2461;.&#x9009;&#x62E9;&#x4ECE;&#x6570;&#x636E;&#x5E93;&#x751F;&#x6210;&#x6A21;&#x578B;&#xFF1A;<br/>&#x2462;.&#x8BBE;&#x7F6E;&#x6570;&#x636E;&#x5E93;&#x8FDE;&#x63A5;&#xFF1A;<br/>&#x2463;.&#x9009;&#x62E9;&#x8981;&#x5728;&#x6A21;&#x578B;&#x4E2D;&#x5305;&#x542B;&#x7684;&#x6570;&#x636E;&#x5E93;&#x5BF9;&#x8C61;&#xFF0C;&#x70B9;&#x51FB;&#x5B8C;&#x6210;&#x751F;&#x6210;&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x6A21;&#x578B;&#xFF1A;<br/>&#x4E8C;&#x3001;&#x5C06;&#x5B58;&#x50A8;&#x8FC7;&#x7A0B;&#x8F6C;&#x4E3A;&#x51FD;&#x6570;<br/>&#x6253;&#x5F00;&#x6A21;&#x578B;&#x6D4F;&#x89C8;&#x5668;&#xFF0C;&#x53F3;&#x952E;&#x70B9;&#x51FB;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x7684;&#x5B58;&#x50A8;&#x8FC7;&#x7A0B;&#xFF0C;&#x5728;&#x83DC;&#x5355;&#x4E2D;&#x9009;&#x62E9;&#x6DFB;&#x52A0;&#x51FD;&#x6570;&#x5BFC;&#x5165;&#xFF1A;<br/>&#x4E09;&#x3001;ADO.NET &#x5B9E;&#x4F53;&#x6570;&#x636E;&#x6A21;&#x578B;&#x4F7F;&#x7528;&#x793A;&#x4F8B;<br/>&#x2460;.&#x589E;&#x52A0;&#x8BB0;&#x5F55;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using (NorthwindEntities northwind = new NorthwindEntities())<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;Categories entity = new Categories();<br/>&nbsp;&nbsp;&nbsp;&nbsp;entity.CategoryName = &#34;fruit&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;entity.Description = &#34;-&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;northwind.Categories.AddObject(entity);<br/>&nbsp;&nbsp;&nbsp;&nbsp;northwind.SaveChanges();<br/>}<br/>SQL Server Profiler&#x8DDF;&#x8E2A;&#x7ED3;&#x679C;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;exec sp_executesql N&#39;ins&#101;rt [dbo].[Categories]([CategoryName], [Description], [Picture])<br/>values (@0, @1, null)<br/>sel&#101;ct [CategoryID]<br/>from [dbo].[Categories]<br/>wh&#101;re @@ROWCOUNT &gt; 0 and [CategoryID] = scope_identity()&#39;,N&#39;@0 nvarchar(15),@1 nvarchar(max) &#39;,@0=N&#39;fruit&#39;,@1=N&#39;-&#39;<br/>&#x2461;.&#x4FEE;&#x6539;&#x8BB0;&#x5F55;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using (NorthwindEntities northwind = new NorthwindEntities())<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;Categories entity = northwind.Categories.First(e =&gt; e.CategoryName == &#34;fruit&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;entity.Description = &#34;fruit description.&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;northwind.SaveChanges();<br/>}<br/>SQL Server Profiler&#x8DDF;&#x8E2A;&#x7ED3;&#x679C;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;exec sp_executesql N&#39;up&#100;ate [dbo].[Categories]<br/>set [Description] = @0<br/>wh&#101;re ([CategoryID] = @1)<br/>&#39;,N&#39;@0 nvarchar(max) ,@1 int&#39;,@0=N&#39;fruit description.&#39;,@1=24<br/>&#x8BF4;&#x660E;&#xFF1A;&#x4E0D;&#x662F;&#x5168;&#x90E8;&#x5B57;&#x6BB5;&#x503C;&#x63D0;&#x4EA4;&#x5230;&#x670D;&#x52A1;&#x5668;&#xFF0C;&#x4EC5;&#x63D0;&#x4EA4;&#x4FEE;&#x6539;&#x90E8;&#x5206;&#xFF01;<br/>&#x2462;.&#x5220;&#x9664;&#x8BB0;&#x5F55;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using (NorthwindEntities northwind = new NorthwindEntities())<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;Categories entity = northwind.Categories.First(e =&gt; e.CategoryName == &#34;fruit&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;northwind.Categories.Del&#101;teObject(entity);<br/>&nbsp;&nbsp;&nbsp;&nbsp;northwind.SaveChanges();<br/>}<br/>SQL Server Profiler&#x8DDF;&#x8E2A;&#x7ED3;&#x679C;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;exec sp_executesql N&#39;del&#101;te [dbo].[Categories]<br/>wh&#101;re ([CategoryID] = @0)&#39;,N&#39;@0 int&#39;,@0=24<br/>&#x2463;.&#x67E5;&#x8BE2;&#x8BB0;&#x5F55;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using (NorthwindEntities northwind = new NorthwindEntities())<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;var categories = northwind.Categories;<br/>&nbsp;&nbsp;&nbsp;&nbsp;foreach (var item in categories)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&#34;{0},{1}&#34;, item.CategoryName, item.Description);<br/>}<br/>SQL Server Profiler&#x8DDF;&#x8E2A;&#x7ED3;&#x679C;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;Sel&#101;ct <br/>[Extent1].[CategoryID] AS [CategoryID], <br/>[Extent1].[CategoryName] AS [CategoryName], <br/>[Extent1].[Description] AS [Description], <br/>[Extent1].[Picture] AS [Picture]<br/>FROM [dbo].[Categories] AS [Extent1]<br/>&#x2464;.&#x8C03;&#x7528;&#x5B58;&#x50A8;&#x8FC7;&#x7A0B;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using (NorthwindEntities northwind = new NorthwindEntities())<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;var query = northwind.CustOrdersDetail(10284);<br/>&nbsp;&nbsp;&nbsp;&nbsp;foreach (var item in query)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&#34;{0},{1}&#34;, item.ProductName, item.ExtendedPrice);<br/>}<br/>SQL Server Profiler&#x8DDF;&#x8E2A;&#x7ED3;&#x679C;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;exec [dbo].[CustOrdersDetail] @OrderID=10284</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x53;&#x51;&#x4C;&#x20;&#x53;&#x65;&#x72;&#x76;&#x65;&#x72;&#x6570;&#x636E;&#x5E93;&#x41;&#x44;&#x4F;&#x2E;&#x4E;&#x45;&#x54;&#x5B9E;&#x4F53;&#x6570;&#x636E;&#x6A21;&#x578B;&#x4F7F;&#x7528;&#x793A;&#x4F8B;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
