Alex Rivera | Logout

How can I create an in memory sqlite database?

Asked 2012-02-07T09:03:58.587
55

I have tried SQLiteConnection(":memory:") and SQLiteConnection("sqlite::memory:") but both of these fail with 'Invalid ConnectionString format'

Edit
Report

1 Answer

95

try

var connection = new SQLiteConnection("Data Source=:memory:");
answered 2012-02-07T09:05:53.870

Your Answer