Skip to content

NH-2420 Supports connection.connection_string_name config property #517

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

Merged

Conversation

AndrewShepherd
Copy link
Contributor

The test for defect NH2420 creates a connection independently of the NHibernate framework.

To create this connection, it first queries the NHibernate configuration for the connection string.

There are actually multiple ways to set an NHibernate connection string:

  • Via the property connection.connection_string
  • Via the property connection.connection_string_name

I had set up my app.config file to use the connection.connection_string_name property, and this test fails as a result.

This commit improves the test so that if it is unable to find the connection.connection_string property it checks for the connection.connection_string_name property.

@oskarb oskarb merged commit 3d0628f into nhibernate:master Oct 30, 2016
@oskarb
Copy link
Member

oskarb commented Oct 30, 2016

Thanks.

@AndrewShepherd AndrewShepherd deleted the NH-2420-Connection-String-Name branch October 30, 2016 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants