久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

UWP sqlite-net 異步數(shù)據(jù)庫訪問

UWP sqlite-net Async database access(UWP sqlite-net 異步數(shù)據(jù)庫訪問)
本文介紹了UWP sqlite-net 異步數(shù)據(jù)庫訪問的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

在我的 UWP 應(yīng)用中,我使用

解決方案

您需要同時安裝 SQLite.Net.Async-PCL 和 SQLite.Net-PCL 使用異步操作.

SQLiteConnectionString connString = new SQLiteConnectionString(file.Path, true);var asyncConnction = new SQLiteAsyncConnection(() =>{返回新的 SQLiteConnectionWithLock(new SQLitePlatformWinRT(), connString);});

請注意,SQLite.Net-PCL 軟件包與您安裝的軟件包不同.我不確定異步包是否與那個兼容.

On my UWP app, I'm using sqlite-net to access the database. According to their GitHub Page I'm using Source Installation. Now I want to migrate to using the Nuget package (To get the latest updates) and they have mentioned getting the PCL package. When I add the PCL package I don't have Async operations available like it was on Source Installation. Please let me know how to proceed on this matter.

When it comes to UWP and I want to use sqlite-net I see soo many nugets in VS 2015 Nuget Package Manager. Please help me which one to choose. (Selected package should not be deprecated in the near future and should be developed actively by the vendor, providing continues updates)

解決方案

You need to install both SQLite.Net.Async-PCL and SQLite.Net-PCL to use async operations.

SQLiteConnectionString connString = new SQLiteConnectionString(file.Path, true);
var asyncConnction = new SQLiteAsyncConnection(
    () => {
        return new SQLiteConnectionWithLock(new SQLitePlatformWinRT(), connString);
    }
);

Note that the SQLite.Net-PCL package is different from the one you installed. I'm not sure if the async package is compatible with that one.

這篇關(guān)于UWP sqlite-net 異步數(shù)據(jù)庫訪問的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Dynamically creating a placeholder to insert many column values for a row in SQLite table(動態(tài)創(chuàng)建占位符以在 SQLite 表中為一行插入多個列值)
How SQLite.Net-PCL handle UTC time(SQLite.Net-PCL 如何處理 UTC 時間)
How to make SQLite SELECT query in C correctly?(如何在 C 中正確地進(jìn)行 SQLite SELECT 查詢?)
Timestamp with 9 digits in SQLite file(SQLite 文件中的 9 位時間戳)
Replace path string in SQLite DB causes unexpected violated unique constraint(替換 SQLite DB 中的路徑字符串導(dǎo)致意外違反唯一約束)
reading in many tables from SQLlite databases and combining in R(從 SQLlite 數(shù)據(jù)庫中讀取許多表并在 R 中組合)
主站蜘蛛池模板: 精品一区国产 | 日本精品视频在线观看 | 97伦理影院 | 日本小电影网站 | 日本一二三区在线观看 | 日韩a在线 | av电影一区| 精品国产一区二区在线 | 亚洲一一在线 | 午夜电影福利 | 国产乱码精品一品二品 | www.久| 欧美综合在线观看 | 国产区视频在线观看 | 成人性视频免费网站 | 午夜av一区二区 | 夜夜草导航 | 在线亚洲精品 | 精品欧美乱码久久久久久1区2区 | 成人黄色av| 我爱操 | 婷婷色在线播放 | 国产福利免费视频 | 自拍偷拍亚洲视频 | 日韩在线观看一区 | 欧美日韩在线观看一区 | 91久久精品 | 久久精品国产一区老色匹 | 色婷婷在线视频 | 国产欧美日韩一区二区三区在线 | 免费在线观看成人av | 欧美国产亚洲一区二区 | 欧美一区二区三区国产 | 天天操夜夜看 | 亚洲精品日韩视频 | 91一区二区 | 久久久久久国产精品免费免费 | 免费国产视频 | 国产精品揄拍一区二区久久国内亚洲精 | 精品动漫一区 | 国产精品美女久久久久aⅴ国产馆 |