
<?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> &#x45;&#x6E;&#x74;&#x69;&#x74;&#x79;&#x20;&#x46;&#x72;&#x61;&#x6D;&#x65;&#x77;&#x6F;&#x72;&#x6B;&#x20;&#x36;&#x8FDE;&#x63A5;&#x53;&#x71;&#x6C;&#x69;&#x74;&#x65;&#x6570;&#x636E;&#x5E93;&#x793A;&#x4F8B;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x31;&#x35;&#x2D;&#x30;&#x31;&#x2D;&#x32;&#x31;&#x20;&#x30;&#x32;&#x3A;&#x34;&#x38;&#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> &#x7B2C;&#x4E00;&#x6B65;&#xFF1A;&#x5728;NuGet&#x5B89;&#x88C5;System.Data.Sqlite&#x7A0B;&#x5E8F;&#x5305;<br/>&#x7B2C;&#x4E8C;&#x6B65;&#xFF1A;&#x751F;&#x6210;&#x5B9E;&#x4F53;&#x7C7B;<br/>&#x6211;&#x8BD5;&#x4E86;&#x5F88;&#x591A;&#x6B21;&#xFF0C;&#x5C1D;&#x8BD5;&#x7528;Entity Framework Power Tools Beta 4&#x8FDE;&#x63A5;Sqlite&#x751F;&#x6210;&#x5B9E;&#x4F53;&#x7C7B;&#xFF0C;&#x4F46;&#x90FD;&#x5931;&#x8D25;&#x4E86;&#xFF0C;&#x6700;&#x540E;&#x7684;&#x89E3;&#x51B3;&#x529E;&#x6CD5;&#x662F;&#x5728;SQL Server&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x76F8;&#x540C;&#x7ED3;&#x6784;&#x7684;&#x5E93;&#xFF0C;EF Power Tools&#x8FDE;&#x63A5;SQL Server&#x751F;&#x6210;&#x5B9E;&#x4F53;&#x7C7B;&#xFF0C;&#x751F;&#x6210;&#x5B8C;&#x540E;&#x8BB0;&#x5F97;&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x6570;&#x636E;&#x5E93;&#x8FDE;&#x63A5;&#x5B57;&#x7B26;&#x4E32;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;add name=&#34;testContext&#34; connectionString=&#34;Data Source=F:\test.db;failifmissing=false&#34; providerName=&#34;System.Data.SQLite.EF6&#34; /&gt;<br/>&#x6CE8;&#x610F;&#xFF1A;EntityFramework 6&#x8FDE;&#x63A5;Sqlite&#x6570;&#x636E;&#x5E93;&#x63D0;&#x4F9B;&#x7A0B;&#x5E8F;&#x4E0D;&#x662F;System.Data.SQLite&#xFF0C;&#x5F97;&#x7528;System.Data.SQLite.EF6&#xFF0C;&#x8FD9;&#x5728;&#x914D;&#x7F6E;&#x6587;&#x4EF6;(App.config)&#x4E2D;&#x6709;&#x89E3;&#x91CA;&#x8BF4;&#x660E;&#x3002;<br/>&#x7B2C;&#x4E09;&#x6B65;&#xFF1A;&#x6700;&#x7EC8;App.config&#x5185;&#x5BB9;&#x5982;&#x4E0B;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&gt;<br/>&lt;configuration&gt;<br/>&nbsp;&nbsp;&lt;configSections&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;section name=&#34;entityFramework&#34; type=&#34;System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#34; requirePermission=&#34;false&#34; /&gt;<br/>&nbsp;&nbsp;&lt;/configSections&gt;<br/>&nbsp;&nbsp;&lt;connectionStrings&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name=&#34;testContext&#34; connectionString=&#34;Data Source=F:\test.db;failifmissing=false&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;providerName=&#34;System.Data.SQLite.EF6&#34; /&gt;<br/>&nbsp;&nbsp;&lt;/connectionStrings&gt;<br/>&nbsp;&nbsp;&lt;system.data&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NOTE: The extra &#34;remove&#34; element below is to prevent the design-time<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;support components within EF6 from sel&#101;cting the legacy ADO.NET<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;provider for SQLite (i.e. the one without any EF6 support).&nbsp;&nbsp;It<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;appears to only consider the first ADO.NET provider in the list<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;within the resulting &#34;app.config&#34; o&#114; &#34;web.config&#34; file.<br/>&nbsp;&nbsp;&nbsp;&nbsp;--&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;DbProviderFactories&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name=&#34;SQLite Data Provider&#34; invariant=&#34;System.Data.SQLite&#34; description=&#34;.NET Framework Data Provider for SQLite&#34; type=&#34;System.Data.SQLite.SQLiteFactory, System.Data.SQLite&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;remove invariant=&#34;System.Data.SQLite&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;remove invariant=&#34;System.Data.SQLite.EF6&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name=&#34;SQLite Data Provider (Entity Framework 6)&#34; invariant=&#34;System.Data.SQLite.EF6&#34; description=&#34;.NET Framework Data Provider for SQLite (Entity Framework 6)&#34; type=&#34;System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/DbProviderFactories&gt;<br/>&nbsp;&nbsp;&lt;/system.data&gt;<br/>&nbsp;&nbsp;&lt;entityFramework&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;defaultConnectionFactory type=&#34;System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;parameters&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;parameter value=&#34;v11.0&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/parameters&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/defaultConnectionFactory&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;providers&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;provider invariantName=&#34;System.Data.SqlClient&#34; type=&#34;System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;provider invariantName=&#34;System.Data.SQLite.EF6&#34; type=&#34;System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/providers&gt;<br/>&nbsp;&nbsp;&lt;/entityFramework&gt;<br/>&lt;/configuration&gt;<br/>&#x7B2C;&#x56DB;&#x6B65;&#xFF1A;&#x6D4B;&#x8BD5;&#x7A0B;&#x5E8F;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using(testContext context = new testContext())<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;List&lt;Person&gt; people = context.People.ToList();<br/>&nbsp;&nbsp;&nbsp;&nbsp;foreach(Person item in people)<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Console.WriteLine(&#34;{0},{1}&#34;, item.Name, item.Age);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}<br/></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.594&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x45;&#x6E;&#x74;&#x69;&#x74;&#x79;&#x20;&#x46;&#x72;&#x61;&#x6D;&#x65;&#x77;&#x6F;&#x72;&#x6B;&#x20;&#x36;&#x8FDE;&#x63A5;&#x53;&#x71;&#x6C;&#x69;&#x74;&#x65;&#x6570;&#x636E;&#x5E93;&#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.594&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.594&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
