Dual Data Sources with dOOdads?

All your dOOdad needs ...

Dual Data Sources with dOOdads?

Postby baden100 on Wed Oct 22, 2008 5:32 pm

Hi Gang,

I'm going to be doing a data migration project, where I'll be pulling data from one DB into another.

Is it possible to use dOOdads with two data sources, and if so, how?

To create my classes, I gather I can simply point the ORM to both db's, and generate the classes to the same directory. As long as table names are not duplicated this should work fine, but how about the actual db connections?

Thanks.
baden100
2nd Lieutenant
 
Posts: 43
Joined: Fri May 12, 2006 10:01 pm

Re: Dual Data Sources with dOOdads?

Postby justin.greenwood on Fri Oct 24, 2008 2:23 pm

here is a snippit fromt he quickstart guide:

Enter the connection string in the AppSettings section of the config file TOC
1. Put the connection string in the web.config (for web apps) or app.config (for
WinForms apps) file and name it "dbConnection".
2. If the connection string is not explicitly assigned in the dOOdad, the dOOdad will
look in the config file for "dbConnection".


In other words, you can define the connection directly in the dOOdad class - and probably override the property and aquire it from wherever you want. The config file or whatever.
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN


Return to dOOdads - MyGeneration's .NET Architecture

Who is online

Users browsing this forum: No registered users and 2 guests