-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSQLiteObjectStore.cs
More file actions
35 lines (31 loc) · 973 Bytes
/
SQLiteObjectStore.cs
File metadata and controls
35 lines (31 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//example SQLite DbObjectstore
//commented out in order to not have dependancies on external libraries
//using System;
//using System.Collections.Generic;
//using System.Data;
//using System.IO;
//using System.Linq;
//using System.Text;
//using System.Data.SQLite;
//namespace SharpQuant.ObjectStore.SQLite
//{
// public class SQLiteObjectStore : DbObjectStore
// {
// static Func<IDbConnection> ConnectionFactory(string fileName)
// {
// Func<IDbConnection> Func = () =>
// {
// IDbConnection conn = new SQLiteConnection();
// conn.ConnectionString = "Data Source=" + fileName + ";";
// conn.Open();
// return conn;
// };
// return Func;
// }
// public SQLiteObjectStore(string fileName)
// : base(ConnectionFactory(fileName), new MyObjectSerializer(), new INIInfoSerializer())
// {
// }
// }
//}