We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7eee8c commit 0f15ebdCopy full SHA for 0f15ebd
1 file changed
DirectSQL/doc/articles/intro.md
@@ -1 +1,26 @@
1
-# See code of TestSqlLiteDatabase as an example
+# An example
2
+
3
+```
4
+public static void example()
5
+{
6
+ SqlLiteDatabase db = new SqlLiteDatabase("connectionString_to_yourdb");
7
+ db.Process((connection, transaction) =>
8
+ {
9
+ SqlLiteDatabase.Query(
10
+ "select TEST_VAL1,TEST_VAL2 from TEST_TABLE where TEST_VAL1 = @val1",
11
+ new (String, object)[] {ValueTuple.Create("@val1","abcdef")},
12
+ connection,
13
+ transaction,
14
+ (result) => {
15
+ while (result.Next())
16
17
+ var resultValues = result.ResultValues;
18
+ Console.Out.WriteLine("TEST_VAL1:" + resultValues.TEST_VAL1);
19
+ Console.Out.WriteLine("TEST_VAL2:" + resultValues.TEST_VAL2);
20
+ }
21
22
+ );
23
+ });
24
+}
25
26
0 commit comments