InvalidOperationException: Unable to resolve service for type 'Cities.Models.IRepository' while attempting to activate 'Cities.Controllers.HomeController'.
在programs里加入builder.Services.AddScoped<接口, model模型>();
InvalidOperationException: Unable to resolve service for type 'Cities.Models.IRepository' while attempting to activate 'Cities.Controllers.HomeController'.
在programs里加入builder.Services.AddScoped<接口, model模型>();