You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public BlogContext(DbContextOptions<BlogContext> options) : base(options) { }
40
+
41
+
public DbSet<BlogPost> BlogPosts { get; set; }
42
+
}
43
+
31
44
## Using an Existing Database (Database-First)
32
45
33
46
The Npgsql EF Core provider also supports reverse-engineering a code model from an existing PostgreSQL database ("database-first"). To do so, add a dependency on Npgsql.EntityFrameworkCore.PostgreSQL.Design. Then, execute the following if you're using dotnet cli:
0 commit comments