wasCSharpSQLite – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Net; |
||
5 | using System.Windows; |
||
6 | using System.Windows.Controls; |
||
7 | using System.Windows.Documents; |
||
8 | using System.Windows.Input; |
||
9 | using System.Windows.Media; |
||
10 | using System.Windows.Media.Animation; |
||
11 | using System.Windows.Shapes; |
||
12 | using Microsoft.Phone.Controls; |
||
13 | using System.Data; |
||
14 | using Community.CsharpSqlite.SQLiteClient; |
||
15 | using test; |
||
16 | |||
17 | namespace Test.WP |
||
18 | { |
||
19 | public partial class MainPage : PhoneApplicationPage |
||
20 | { |
||
21 | // Constructor |
||
22 | public MainPage() |
||
23 | { |
||
24 | InitializeComponent(); |
||
25 | this.Loaded += new RoutedEventHandler(MainPage_Loaded); |
||
26 | } |
||
27 | |||
28 | public void WriteLine(String value) |
||
29 | { |
||
30 | this.listBox1.Items.Add(value);// + Environment.NewLine; |
||
31 | } |
||
32 | |||
33 | protected void MainPage_Loaded(object sender, EventArgs e) |
||
34 | { |
||
35 | |||
36 | //SQLiteClientTests.SQLiteClientTestDriver.Main(null); |
||
37 | IDbConnection cnn; |
||
38 | |||
39 | try |
||
40 | { |
||
41 | System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForApplication().DeleteFile("test.db3"); |
||
42 | } |
||
43 | catch { } |
||
44 | |||
45 | |||
46 | using (cnn = new SqliteConnection()) |
||
47 | { |
||
48 | TestCases tests = new TestCases(); |
||
49 | |||
50 | cnn.ConnectionString = "data source=test.db3,password=0x01010101010101010101010101010101"; |
||
51 | cnn.Open(); |
||
52 | tests.Run(cnn, this); |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 | } |