开发者

In memory database wrapper for system.data.sqlite

开发者 https://www.devze.com 2023-03-29 09:29 出处:网络
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 ?

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

精彩评论

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