Hello,
I would like to know what's the best way to develop an multi ORM solution.
Until now all the projects I saw are strongly related with the choice of ORM and they stick with it until the end. Nhibernate, Castle ActiveRecord, Linq to SQL, WilsomORM, LLBLGen, SubSonic, Entity Framweork, others...
I was thinking if I should or not, separate the strong relation of this choice with the rest of the project. In a way where I could change the ORM anytime I wanted.
For now the only idea that I've is something like "factory" retrieving me the ORM object and then I would map it to some "internal" object.
There are situations when a project start with some limitations and the decisions made on that time, don't give any other option than choosing one specific ORM or some other stuff in a different area.
But later in time, months, year, or so, many thing change, more funds, more support, advance in technologies, new frameworks/ideas, etc... provide us with better options, and in this situation it would be really cool to be able to change the ORM without major changes in the application (in this time can be HUGE one).
I would like to know your opinions.
Thank you guys.