Skip to content
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

NH-2286 - Use providerName attribute of <connectionStrings> #724

Open
nhibernate-bot opened this issue Oct 12, 2017 · 0 comments
Open

NH-2286 - Use providerName attribute of <connectionStrings> #724

nhibernate-bot opened this issue Oct 12, 2017 · 0 comments

Comments

@nhibernate-bot
Copy link
Collaborator

Jason Dentler created an issue — 14th August 2010, 7:04:26:

IMO, this is the logic extension of our current discussion around https://nhibernate.jira.com/browse/NH-1378, but is valid even without it.

For example, a user specifies a standard connection string in App.Config like this.

A user also sets the NH property connection.connectionstringname to "db".

With this information, we can choose some sensible defaults for driver and dialect according to the providerName attribute.

Ignoring the boring technical details, this is the Microsoft-prescribed way to specify what type of DB you are using. This is one small thing we can do to ease the transition from Microsoft's data access tech to NHibernate.

I'll start a thread on the dev-list to discuss what the defaults should be, and follow up with a patch once the dust has settled.


Fabio Maulo added a comment — 14th August 2010, 11:09:26:

but then we have to create a map between the providerName and the appropriate NH's Drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants