Jump to content

Recommended Posts

Posted

I’m working on my first implementation of LINQ to SQL.* I am curious to know about the connection string used by LINQ when making a connection to the SQL Server database.* I’ve got a strongly typed DataContext class, and looking at the Connection property’s ConnectionString property it looks identical to an ADO.NET connection string to the database.* I see that the DataContext base class has several constructors, of which one is just a string connect parameter (in C#) (actually, according to the online documentation, it is “file or server or connection”).* This, plus what I’ve seen with the Connection.ConnectionString property, suggests that I could pass in a different ADO.NET connection string if I wanted to, when instantiating the strongly typed DataContext object.

I want to verify that what I’m thinking is correct, please.

I am using Visual Studio 2008 Pro.

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...