Search code examples
c#-4.0sqlitewindows-phone-8

SQLite Database cannot be created


I'm trying to create an SQLite database. But the database cannot be created.

My code,

Database database = new Database(ApplicationData.Current.LocalFolder, "people12.db");

await database.OpenAsync();

string query = "CREATE TABLE PEOPLE " +
               "(Name varchar(100), " +           "Surname varchar(100))";

await database.ExecuteStatementAsync(query);

Solution

  • As I saw in your code snippet, you have not created any database file using your code.

    please see this link for the your solution.

    Link

    Hope it helps