Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在WindowsPhone7应用程序中解密SQLite数据库内容?_C#_Silverlight_Sqlite_Windows Phone 7 - Fatal编程技术网

C# 如何在WindowsPhone7应用程序中解密SQLite数据库内容?

C# 如何在WindowsPhone7应用程序中解密SQLite数据库内容?,c#,silverlight,sqlite,windows-phone-7,C#,Silverlight,Sqlite,Windows Phone 7,我正在开发WindowsPhone7应用程序。我不熟悉Windows phone 7应用程序。我在应用程序中使用SQLite数据库来存储和检索数据。我正在使用以下链接进行数据库连接 我遵循了文章中给出的所有步骤。在编码部分,我在下面的函数中得到一个错误 public List<T> SelectList<T>(String statement) where T : new() { Open(); SQLit

我正在开发WindowsPhone7应用程序。我不熟悉Windows phone 7应用程序。我在应用程序中使用SQLite数据库来存储和检索数据。我正在使用以下链接进行数据库连接

我遵循了文章中给出的所有步骤。在编码部分,我在下面的函数中得到一个错误

public List<T> SelectList<T>(String statement) where T : new()
        {
            Open();
            SQLiteCommand cmd = db.CreateCommand(statement);
            var lst = cmd.ExecuteQuery<T>();         
            return lst.ToList();
        }

当SQLite无法打开数据库文件时,该消息是一个标准错误。这并不一定意味着数据库是加密的,事实上,除非您专门尝试对其进行加密,否则几乎肯定不会。这只是意味着您正在访问的文件不是有效的普通SQLite数据库文件


您之前是否在创建文件或尝试打开错误的文件路径时出错

当SQLite无法打开数据库文件时,该消息是一个标准错误。这并不一定意味着数据库是加密的,事实上,除非您专门尝试对其进行加密,否则几乎肯定不会。这只是意味着您正在访问的文件不是有效的普通SQLite数据库文件

您之前是否在创建文件或尝试打开错误的文件路径时出错

var fileStream = store.OpenFile("image.jpg", FileMode.Open, FileAccess.Read);
var imageAsBitmap = PictureDecoder.DecodeJpeg(fileStream);