VS2012啓用SQLite的Data Provider

VS 2012默認是不帶的SQLite的Data Provider,因此沒法直接在VS 2012裏管理SQLite的數據庫,天然也不能在VS裏像SQL Server那樣直接生成Entity Framework的model類了。SQLite團隊爲了解決這個問題,在SQLite的安裝包裏把用於VS2012的Data Provider給打包進去了。可是擼主卻失敗了無數次才找到正確把SQLite整合到VS裏的方法,記錄以下,分享給有須要的童鞋。html

  1. 首先從http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki下載SQLite安裝包。這個頁面安裝包很是多,一會兒就會看眼花繚亂。須要注意的是隻有32位的安裝包纔會能把SQLite的Data Provider加到VS Designer裏。若是你已經看的眼花繚亂,一個簡單的方法就是搜索右邊描述裏有顯示以下黑體語句的This is the only setup package that is capable of installing the design-time components for Visual Studio 2012的安裝包,直接下載安裝就行。擼主此次下載到的文件名是sqlite-netFx45-setup-bundle-x86-2012-1.0.93.0.exe。
  2. 安裝的時候必定不要用Full Installation,要選擇Custom Installation,而後只選擇Core Component(包括它裏面的2個) 以及Visual Studio Designer Component。image
  3. 點擊下一步,在Install Designer For Visual Studio 2012前面打鉤image
  4. 安裝完畢後,重啓VS 2012後就應該能看到SQLite Data Provider的選項了。

2014.8.10更新,Visual Studio 2013裏啓用SQLite Data Provider的步驟是同樣的,就是下載安裝包的時候要選擇This is the only setup package that is capable of installing the design-time components for Visual Studio 2013左邊的那個安裝包。sql

相關文章
相關標籤/搜索