DEV Community

Sergio Di Fiore
Sergio Di Fiore

Posted on

EF on NET.CORE dbcontext not loading in WPF page on

A system in NET.Core 3.1 and WPF has the following DbContext:

public class DataContext : DbContext
{
    public DataContext(DbContextOptions<DataContext> options) : base(options) { }
    public DbSet<Role> Roles { get; set; }
    public DbSet<Usuario> Usuarios { get; set; }
}

The ConfigureDervices in App.xaml.cs is as follows:

private void ConfigureServices(IConfiguration configuration,

Top comments (0)