Multiple Databases

23 views
Skip to first unread message

Trey

unread,
Oct 23, 2013, 9:30:19 AM10/23/13
to sharp...@googlegroups.com
Is it possible to utilize more than one database with Sharp Lite?  We have a legacy database in DB2 that needs to stay and we are storing additional data in SQL Server.  We are currently using Sharp Lite to go against SQL Server, but I would like to also create business objects that come from the data in DB2.  I would like for the Domain to dictate which database they are persisted to and not the Controllers in the Web project.

Thanks for any insight.

Billy McCafferty

unread,
Dec 12, 2013, 11:36:36 PM12/12/13
to sharp...@googlegroups.com
Hi Trey,

A couple of years ago, I developed an application that would integrate with multiple databases on the fly.  It wasn't per domain object, but per API request.  But you may be able to get some ideas out of the code, which I've attached for your review.

Billy McCafferty


On Wed, Oct 23, 2013 at 7:30 AM, Trey <treym...@gmail.com> wrote:
Is it possible to utilize more than one database with Sharp Lite?  We have a legacy database in DB2 that needs to stay and we are storing additional data in SQL Server.  We are currently using Sharp Lite to go against SQL Server, but I would like to also create business objects that come from the data in DB2.  I would like for the Domain to dictate which database they are persisted to and not the Controllers in the Web project.

Thanks for any insight.

--
You received this message because you are subscribed to the Google Groups "S#arp Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharp-lite+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Prism.zip
Reply all
Reply to author
Forward
0 new messages