I have two executables that access a DLL containing Data Access Layer objects Each exe can have a different config containing info on server and database name, connection string etc.
How do I pass the config info to the DAL objects?
Obviously I can pass the config strings to the DAL objects every time I instanciate one, but that seems messy and repetitive as every class in the DAL will require Properties for the Config strings..
Can anyone tell me if there is a better way?
I am wondering if there is a way for the instanciated DAL objects to read some properties from the calling object without me having to pass them explicitly?