79229628

Date: 2024-11-27 09:30:27
Score: 0.5
Natty:
Report link

Using static classes (or perhaps 'hardcoded' config access) is a generally bad idea. Thats why we invented "instances" - same code, but different data (e.g. different connection string).

It is possible to use different versions of a packages using the Aliases="Alias1" parameter (perhaps even using the same version???). However if there is a hardcoded access to some config-file/settings - you still will read the same config. So you should have same DbContext instances that receives different config-values and will provide access to different DBs.

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: BerndK