Database First with EF7 in a Universal App

entity-framework entity-framework-core sqlite win-universal-app

Question

I have a Sqlite database that I want to use in my UWP application With EF7, How can I create model from database with EF7?

1
2
3/8/2016 9:14:01 AM

Accepted Answer

You can install SQL Server Compact/SQLite Toolbox and create model from database SQL Server Compact/SQLite Toolbox DLL

3
3/8/2016 11:23:15 AM

Popular Answer

According to this question/answer you should be able to create poco classes from an existing database. However, I have not tried this myself.

To summarize ErikEJs answer:

  1. Get nuget packages EntityFramework.Commands and EntityFramework.MicrosoftSqlServer.Design
  2. Run from the package manager console: Scaffold-DbContext '<connectionString>' EntityFramework.MicrosoftSqlServer or *dnx ef dbcontext scaffold '<connectionString>' EntityFramework.MicrosoftSqlServer


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow