SubSonic-based app that connects to multiple databases
Posted
by Fervelas
on Stack Overflow
See other posts from Stack Overflow
or by Fervelas
Published on 2010-01-16T04:16:08Z
Indexed on
2010/03/27
6:03 UTC
Read the original article
Hit count: 460
subsonic
|subsonic2.2
Hello there,
I currently developed an app that connects to SQL Server 2005 database, so my DAL objects where generated using information from that DB.
It will also be possible to connect to an Oracle and MySQL db, all with the same table structures (aside from the normal differences in fields, such as varbinary(max) in SQL Server and BLOB in Oracle, and so on). For this purpose, I already defined multiple connection strings and multiple SubSonic providers for the different DB's the app will run on.
My question is, if I generated my objects using a SQL Server database, should the generated objects work transparently with the other DB's or do I need to generate a different DAL for each database engine I use? Should I be aware of any possible bugs I may encounter while performing these operations?
Thanks in advance for any advice on this issue.
© Stack Overflow or respective owner