Our current web application is using SQL Server, we have a requirement for support Oracle now.
There are a few options:
-
Data Facade pattern: use Data Facade interface in Business Layer, so SQL Server and Oracle can have their own implementation of Data Access Layer. The problem is it’s hard to synchronize DAL code for different type of database.
-
nHibernate: it seems promising, I don’t have experience using it. As our current Data Access Layer is mixed with SQL and Stored Procedure, not sure whether there will be a lot of work involved if change to nHibernate (we are facing time pressure).
I’d like to hear your opinions. Thanks.
Nobody has mentioned the Microsoft Enterprise Library yet. I haven’t used it so I can’t provide a recommendation but I would have thought it warranted further attention. I was listening to a podcast the other day where they were stating that database inter-operability was a design goal.