New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an extension point for customizing establishing of ADO.NET connections #87
Add an extension point for customizing establishing of ADO.NET connections #87
Conversation
@a-belevich Thanks for the effort! There are a couple of improvements before we can merge this.
Having an API like:
|
a509bab
to
6896e74
Compare
@ramonsmits Thank you for review. New version uses injection instead of static factory class. Now configuration looks like
where factory is of type @SzymonPobiega Ramon mentioned that he's going to vacation. If it's still true, could you please take a look? |
6896e74
to
8dec49a
Compare
…ting Particular#112 - Allow customizing of SQL Transport connections with injectable factory. - Unit tests for SqlConnectionFactoryConfig
8dec49a
to
d860404
Compare
@a-belevich looks good. One thing that I would change is registration of Do you have time to do this small adjustment? If no, I can do it after merging. Any way, thanks for the contribution! |
a5af82d
to
30c216f
Compare
@SzymonPobiega Thank you for reviewing. I've added CustomSqlConnectionFactory class that wraps the Func in container. Is that the change you've meant? |
…ries SqlConnections should be created with factory
@a-belevich thanks a lot! Merged. |
Make usage of NHibernate compatible with
SET NOCOUNT ON
DB-wide setting #112 issue shows how NOCOUNT server setting can break the NHibernate persistence. It was solved by injecting NHibernate's DriverConnectionProvider, that fixes connections immediately after their opening. However, when SQL Server transport is used, and the same database is used for Timeouts persistence and SQL Transport, it can happen that connections opened for transport can be used by Timeouts persistence routines.Solution: allow injection of custom SQL connections' factories, like NHibernate does. Such factories can, for example, send
SET NOCOUNT OFF
command immediately after opening the connection.