在.NET中SQLite2.x用phpguru的SQLite.NET wrapper不用System.Data.SQLite

System.Data.SQLite只能支持SQLite3
SQLite.NET wrapper就仅仅支持SQLite2
简直相得益彰:
http://www.dc9.cn

            SQLiteClient db = new SQLiteClient(@"C:\xampp\htdocs\x2.db");
            SQLiteResultSet srs=db.Execute("INSERT INTO Table01 (Field02) VALUES ('xxx')");
          
            ArrayList x = db.GetAll("SELECT rowid,Field02 FROM Table01");   
   
            foreach (string r in x)   
            {   
                Console.WriteLine("\t" + r);   
            } 

2 comments

  1. I simply want to mention I am all new to blogging and site-building and absolutely enjoyed you’re web site. More than likely I’m want to bookmark your blog post . You actually come with perfect articles and reviews. Thanks a lot for revealing your website.

  2. Jeannette Means 说道:

    I’m still learning from you, while I’m making my way to the top as well. I definitely liked reading all that is posted on your website.Keep the stories coming. I loved it!

发表评论

电子邮件地址不会被公开。