Properties not set in app.config not available in Environment.Properties
Description
I am setting some configuration properties using code. We are also using batching. We have the command_timeout set as one of these properties, but the sql batcher uses Environment.Properties to find the command_timeout. This means that for non batched commands, the timeout is being set correctly, but for batched commands the batcher defaults to the default timeout for a command, which is 30s. It appears that the Environment properties are only set from app.config and not merged with the properties found elsewhere which are used when creating the session factory.
I am setting some configuration properties using code. We are also using batching.
We have the command_timeout set as one of these properties, but the sql batcher uses Environment.Properties to find the command_timeout.
This means that for non batched commands, the timeout is being set correctly, but for batched commands the batcher defaults to the default timeout for a command, which is 30s.
It appears that the Environment properties are only set from app.config and not merged with the properties found elsewhere which are used when creating the session factory.