Exemplo n.º 1
0
 public PgSQLController(IOptions <AppSettings> appSettings)
 {
     _appSettings = appSettings.Value;
     _context     = new StaffMasterRepository(_appSettings.ConnPgSQL); //Cant use DI when more than one db uses the same interface -> IStaffMasterRepository
 }
Exemplo n.º 2
0
 public MsSQLController(IStaffMasterRepository context)
 {
     _context = context;
 }