1
如何使用startup.cs中的參數注入服務。如何注入SqlConneciton?在asp.net核心中注入參數
public class AirportService : IAirportService
{
public AirportService(SqlConnection con)
{
var airportRepository = new AirportRepository<Airport>(con);
}
}