I want to connect from EntityFrameworkCore to sqlite3 database but don't know how to obtain connection string...

Juan Dent 226 Reputation points

I have created a console project for C# and installed the following packages:


I have a sqlite3 database at a path c:\Data\db.sqlite

How can I connect to this database (in particular what is the connection string?) and how can I reverse engineer the database into my C# project? (i.e. creation of DbContext and models)

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
230 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,128 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Juan Dent 226 Reputation points

    the connection string is simply: "Data Source=c:\Data\SeguroMedicoMFC.sqlite;"