开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜