建立通用 AppHost项目 先在 Program.cs中配置好数据库连接 builder.AddNpgsqlDbContext<TasksContext>("Default-PostgreSQL", configureDbContextOptions: option => { }); 然后在 a