SQLLite使用小结.pdfVIP

  • 9
  • 0
  • 约8.1千字
  • 约 8页
  • 2017-06-07 发布于河南
  • 举报
SQLLite使用小结

///summary /// ////summary ///paramname=path/param privatevoidcreateDataBase() { stringpath=dbName; FileInfofi=newFileInfo(path); boolexists=fi.Exists; if (!exists) { SqlLit.SQLiteConnection.CreateFile(path); } Conn=newSystem.Data.SQLite.SQLiteConnection(); System.Data.SQLite.SQLiteConnectionStringBuilderConnStr=new System.Data.SQLite.SQLiteConnectionStringBuilder(); ConnStr.DataSource=path; ConnStr.Password=password; Conn.ConnectionString=ConnStr.ToString(); Conn.Open(); if (!exists) { System.Data.SQLite.SQLiteCommandcmd=new System.Data.SQLite.SQLiteCommand(); stringSql=CREATETABLEAdmin(Softnamevarchar(20),Version

文档评论(0)

1亿VIP精品文档

相关文档