標籤:
①開啟C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config目錄,找到machine.config檔案新增
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>如下所示:
<system.data><DbProviderFactories><add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/></DbProviderFactories></system.data>
②登陸官方網址 下載Sqlite .NET Framework 4.0版本如所示:
③下載完成後安裝,開啟C:\Program Files\System.Data.SQLite\2010\bin,複製System.Data.SQLite.dll和SQLite.Interop.dll到codesmith安裝目錄,如C:\Program Files (x86)\CodeSmith\v7.0\bin,然後重啟codesmith7,正常使用
Window2008 R2(64位)使用codesmith串連Sqlite