Beispiel #1
0
 public CarsController(DevCarsDBContext dBContext, IConfiguration configuration)
 {
     _dbContext        = dBContext;
     _connectionString = configuration.GetConnectionString("DevCarsCs");
     // _connectionString = _dbContext.Database.GetDbConnection().ConnectionString;
 }
Beispiel #2
0
 public CustomersController(DevCarsDBContext dbContext)
 {
     _dbContext = dbContext;
 }