It appears the type provider cache's generated members for each sql statement which is great but fails to regenerate members and uses a stale cache, when any of the global parameters is updated, namely the XCtor.
To Reproduce:
- Disable XCtor on the global Database type.
- Write a SQL query using the CreateCommand.
- Enable the XCtor
- Observe that it still thinks it should use a connection string.