简体   繁体   中英

Is sqlite.Net.Extensions functionalities supported in Uwp platform?

Not being able to use any SQLExtensions functionalities with Sqlite connection.

Installed SQLExtensions 2.1.0 nuget package in the UWP app, created the following db connection,

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

however I am not able to access any SQlExtension functionalities using the "conn", such as GetWithChildren or UpdateWithChildren, is there any way to use the foreign key features on UWP platform?

Yes.

Accessing Write Operation:

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

Accessing Read Operation:

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

[Tested on UWP Platform]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM