Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2009, 12:25 PM
Authorized User
 
Join Date: Apr 2009
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Post Multiple databases Application

Hi, my application has several databases and Vince recommends the following

publicabstractclassENTBaseData<T, DC>
where T : IENTBaseEntity
where DC: DataContext, new()
{
publicabstractList<T> Select();
publicabstract T Select(int id);
publicabstractvoid Delete(DC db, int id);
publicvoid Delete(string connectionString, int id)
{
using (DC db = new DC(connectionString))
{
Delete(db, id);
}
}

1 - I am using vb.net which does not seem to allow the connectionString argument
in : using db as new DC(connectionString) etc..

2 - I have declared my ENTBaseEO as follows:
PublicMustInheritClass ENTBaseEO(Of DC As {DataContext, New})
Inherits ENTBaseBO

Every thing is OK until I reach the baseEditPage master class where I have to specify which
datacontext I am using. I am reluctant to have the UI reference the DAL.

Any idea would appreciated

regards

Last edited by luckystar; April 30th, 2009 at 04:25 PM.. Reason: typo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving Data From Multiple Databases Macsood SQL Language 4 January 24th, 2012 04:58 AM
web application with several databases javaskater Apache Tomcat 0 February 9th, 2008 01:12 PM
Reporting against multiple databases zaustin Reporting Services 0 July 28th, 2006 02:11 PM
Multiple databases...multiple problems keady2 BOOK: Access 2003 VBA Programmer's Reference 1 June 7th, 2006 01:52 PM
Multiple Hierarchical Databases Macsood Oracle 0 December 6th, 2005 12:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.