我在 Xamarin Forms Android 应用程序中的 Sqlite 连接字符串中设置密码属性时遇到问题。它在 Xamarin Forms iOS 中运行良好。我用过以下`
connection.ConnectionString = new SqliteConnectionStringBuilder(connection.ConnectionString)
{ Password = password }
.ToString();
connection.Open();
Run Code Online (Sandbox Code Playgroud)
` 在此处输入图像描述 您在连接字符串中指定了密码,但您使用的本机 SQLite 库不支持加密。
我在 Xamarin Forms 应用程序上使用 Microsoft.Data.Sqlite 3.1.5 nuget 包。
任何帮助,将不胜感激。