コード例 #1
0
        //private readonly ILogger<HomeController> _logger;
        //ILogger<HomeController> logger,
        public HomeController(IConfiguration configuration)
        {
            var databaseClass = new DatabaseClass
            {
                ConnectionString = configuration.GetConnectionString("LocalDatabase"),
            };

            _streetArtRepository = new StreetArtRepositoryClass(databaseClass);

            ///_logger = logger;
        }
コード例 #2
0
        public StreetArtController(IConfiguration configuration, IMapper mapper, IWebHostEnvironment env)
        {
            var databaseClass = new DatabaseClass
            {
                ConnectionString = configuration.GetConnectionString("LocalDatabase"),
            };

            streetArtRepository = new StreetArtRepositoryClass(databaseClass);
            _mapper             = mapper;
            _env = env;
        }
コード例 #3
0
 public StreetArtController(StreetArtRepository streetArtRepository, IMapper mapper, IWebHostEnvironment env)
 {
     StreetArtRepository = streetArtRepository;
     _mapper             = mapper;
     _env = env;
 }
コード例 #4
0
 public StreetArtController(IMapper mapper, IWebHostEnvironment env, StreetArtRepository streetArtRepository)
 {
     this.streetArtRepository = streetArtRepository;
     _mapper = mapper;
     _env    = env;
 }
コード例 #5
0
 public HomeController(StreetArtRepository streetArtRepository)
 {
     this.streetArtRepository = streetArtRepository;
 }