N
N
Nick2282020-11-16 20:19:16
SQLite
Nick228, 2020-11-16 20:19:16

How to fix error in SQLite connection with WPF?

Trying to connect a SQLite database to WPF via EF6 throws "-532,462,766" error. Here is App.config, db is called

<connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=.\gdb.sqlite" providerName="System.Data.SQLite" />
</connectionStrings>


ApplicationContext.cs
public ApplicationContext():base("DefaultConnection") { }
public DbSet<User> users { get; set; }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2020-11-18
@yarosroman

Did you create the database itself with tables, manually or through migrations?

V
Vasily Bannikov, 2020-11-18
@vabka

You don't have the table you are looking for in the database. We need to roll out the migration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question