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

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

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

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

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

解決方案

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

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

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

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ù)庫(kù)訪問(wèn)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Dynamically creating a placeholder to insert many column values for a row in SQLite table(動(dòng)態(tài)創(chuàng)建占位符以在 SQLite 表中為一行插入多個(gè)列值)
How SQLite.Net-PCL handle UTC time(SQLite.Net-PCL 如何處理 UTC 時(shí)間)
How to make SQLite SELECT query in C correctly?(如何在 C 中正確地進(jìn)行 SQLite SELECT 查詢?)
Timestamp with 9 digits in SQLite file(SQLite 文件中的 9 位時(shí)間戳)
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ù)庫(kù)中讀取許多表并在 R 中組合)
主站蜘蛛池模板: 中国美女av | 成人精品国产免费网站 | 免费一区二区 | 久久久久免费 | 视频二区在线观看 | 日韩国产中文字幕 | 国产一级片在线观看视频 | 五月免费视频 | 日韩爱爱网 | 国产精品伦一区二区三级视频 | 激情五月综合 | 一级黄a视频 | 国产精品爱久久久久久久 | 亚洲高清视频一区二区 | 亚洲国产精品成人久久久 | 91久久 | 免费午夜视频在线观看 | av乱码| 亚洲狠狠| 免费观看一级毛片视频 | 成人二区| 日本a视频 | 国产成人精品久久二区二区91 | 亚洲激情在线 | 国产不卡一区 | 免费av在线 | www国产成人免费观看视频,深夜成人网 | 午夜免费| 成人在线观看免费 | 国产在线中文字幕 | 97碰碰碰 | 日韩一区二区三区在线 | 亚洲一区二区三区视频免费观看 | 99久久99| 欧美久久一区二区三区 | 欧美福利影院 | 在线观看av网站永久 | 久久一 | 国产在线一区二区 | 久久国产一区二区三区 | 欧美一区|