Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 C# 新手,如何在 C# WPF 中读取本地数据库文件?
我已经尝试过本教程:Link。
但是我无法让它工作,我在哪里放置 .db 文件,有人可以指出我的好教程或显示正确的方向。
尝试这个;
string dbfile = "C:\\.....\\datasabename.db"; string connStr= "Data Source=" + dbfile + ";Version=3;Synchronous=Off;UTF8Encoding=True;"; SQLiteConnection sqlConn= null; sqlConn = new SQLiteConnection(connStr); sqlConn.Open();