In memory database wrapper for system.data.sqlite
I am using system.data.sqlite for in memory testi开发者_运维问答ng, and i wanted to know if any of you got a link or knowledge for a open source project that simply create database and tables ?
For example :
InMemoryDB db = new InMemoryDB();
Table t = new Table("myTable");
t.Add(new Coloum("Uid",DbType.VarChar,PrimeryKey = true));
db.Add(t);
or even a better idea ?
Just use "Data Source=:memory:"
as your connection string, and manipulate the DB directly in SQL
精彩评论