生成-----目标平台也设置了位数还是报错
string datasource = "F:/C#源码/test.db";
System.Data.SQLite.SQLiteConnection.CreateFile(datasource);
//连接数据库
SQLiteConnection conn = new SQLiteConnection(datasource);
SQLiteConnectionStringBuilder connstr = new SQLiteConnectionStringBuilder();
connstr.DataSource = datasource;
connstr.Password = "admin";//设置密码,SQLite ADO.NET实现了数据库密码保护
conn.ConnectionString = connstr.ToString();
conn.Open();
//创建表
System.Data.SQLite.SQLiteCommand cmd = new System.Data.SQLite.SQLiteCommand();
string sql = "CREATE TABLE test(username varchar(20),password varchar(20))";
cmd.CommandText = sql;
cmd.Connection = conn;
cmd.ExecuteNonQuery();
平台目标设置64位提示报错如下图
平台目标设置86位则提示报错如下图