Back to list
Views:   0
Replies:  0
Archived
,
Reply 1
Doug:

The DataObjectFactory caches the connectionstring so that the context can be created quickly.

So, the DataObjectFactory represents a database connection, which would suggest that if your EF Models reside in the same database your above suggestions is appropriate (i.e. CreateActionContext, CreateAccountContext, etc).  However, if your EF Models reside in different databases, then you will want to create additional DataObjectFactory classes, one for each database connection.

Hope this helps.
Dan McMillan, Dec 12, 2010
Reply 2
Hi Dan,
I replied to your question above.  Hopefully that clears up what I'm trying to do.  If not, let me know.

Doug

Doug Rohm, Dec 06, 2010
Reply 3
Doug:

What do you mean with mulitple models?
Multiple databases, classes, or modules (groups of classes)?

Dan.

Dan McMillan, Dec 03, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas