I am trying to setup entity framework with sqlite in visual studio 2012. So, here is what I have done so far:
- Installed System.Data.Sqlite with "Design-Time Component".
- Entity Framework Tools for visual studio 2012.
- System.Data.SQLite,System.Data.SQLite.EF6 and System.Data.SQLite.Linq from NuGet.
Now I am trying to add "ADO.net Entity Data Model",By following steps:
- Add New Item.
- ADO.net Entity Data Model.
- "EF Designer from Database" from wizard and click "Next".
- Add "New Connection", Data Source: System.Data.Sqlite Database File.
After choosing db file and provide password when I click on "Next" button, following error occurs:
I have checked my db file in "Sqlite Browser" also I have setup password for db file with the help of following code:
string conn = @"Data Source=pahtto\App_Data\app_data.sqlite;";
SQLiteConnection connection = new SQLiteConnection(conn);
connection.SetPassword("123456");
connection.Close();
What am I missing?
Please guide me.
Thank you.
