LINQ and DataContext

"R. Rogers" <[email protected]> Mon, 19 Nov 2007 17:18:33 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <006b01c82afa$1f8e7700$6800a8c0@Speedster>
Hi again,

Looks like I found what I'm looking for; DataContext has a DatabaseExists
method, for which the following is written:

"Determines whether the associated database can be opened.".

Thanks,

Richard
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of R. Rogers
Sent: November 19, 2007 4:30 PM
To: [email protected]
Subject: [DOTNET-WINFORMS] LINQ and DataContext

Hello,

Have started working with DLINQ, and the System.Data.Linq.DataContext class.

I thought that the DataContext would be very similar to the SqlConnection
class, and that I would be able to explicitly connect, by calling .Open();

Alas, it doesn't contain that method. Now, how do I explicitly connect, and
if it fails, how do I test for that?

Thanks for all feedback,

Richard Rogers
http://www.RichardRogers.ca/
(Home) 416-787-4777
 (MSN) [email protected]