I want to give user choice to select database from multiple database(like SqlServer,Oracle,etc) list in the UI. Depending on the user selection, I want to connect to selected database.I can do this by creating interface and implementing that interface by separate class for each database.This approach is explained here
http://thetechstory.com/2012/09/29/connecting-multiple-databases-in-net-using-c-part-1-introduction/
I have also heard that it is possible by using NHibernate also. I don't know much about NHibernate. I have been searching through web.But I am not able to figure out which way is a better way to implement this scenario. Should I go for NHibernate or should code for separate database implementation?