示例#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
 }
示例#2
0
 public MsSQLController(IStaffMasterRepository context)
 {
     _context = context;
 }