簡體   English   中英

Uwp平台是否支持sqlite.Net.Extensions功能?

[英]Is sqlite.Net.Extensions functionalities supported in Uwp platform?

無法通過Sqlite連接使用任何SQLExtensions功能。

在UWP應用中安裝了SQLExtensions 2.1.0 nuget軟件包,創建了以下數據庫連接,

using (SQLite.Net.SQLiteConnection conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), DB_PATH))
        {
            conn.CreateTable<DemoType1>();
            conn.Commit();
            conn.Close();
        }

但是我無法使用“ conn”訪問任何SQlExtension功能,例如GetWithChildren或UpdateWithChildren,是否可以在UWP平台上使用外鍵功能?

是。

訪問寫操作:

SQLiteNetExtensions.Extensions.WriteOperations.UpdateWithChildren( SQLConnectionObject, EntityObject); 

訪問讀取操作:

 var readData = SQLiteNetExtensions.Extensions.ReadOperations.GetWithChildren<Employee>(SQLConnectionObject, PrimaryKey);

[在UWP平台上測試]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM