public static void CreateSnapshotStoreTable(string connectionString, string tableName)
{
if (string.IsNullOrEmpty(connectionString)) throw new ArgumentNullException("connectionString", "SqlitePersistence requires connection string to be provided");
if (string.IsNullOrEmpty(tableName)) throw new ArgumentNullException("tableName", "SqlitePersistence requires snapshot store table name to be provided");
using (var connection = new SQLiteConnection(connectionString))
using (var command = new SQLiteCommand(string.Format(SnapshotStoreFormat, tableName), connection))
{
connection.Open();
command.ExecuteNonQuery();
}
}
}