简体   繁体   中英

UWP database designer for SQLite

I am following this tutorial and it seems you have to build all the relationships manually. Is there any database visualizer/designer for visual studio which will help you to easily create an SQLite database? Something like this one: 在此处输入图片说明

TL;DR: Currently there's no official support in UWP to create your database from a designer AND have both the SQL and C# code generated.

If you're using EF Core with code first as done in the tutorial you're following, then there's no designer to help. After all it is 'code first' not designer first.

If you really want to design your database, you can use ErikEJ's Visual Studio Extension called SQLite / SQL Server Compact Toolbox . This will help you to design the database, but then you won't have a way to generate the C# DBContext and Entity classes for UWP, as UWP only supports EF Core (not EF 6).

So you'll either have to write the models yourself after designing the database and you're back at step 1 (so what's the use of using a visual designer), or write SQL queries yourself using SQLite.NET-PCL or any other SQLite NuGet package.

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