+ Reply to Thread
Results 1 to 2 of 2

Thread: where is the LINQ connectionstring?

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    6

    where is the LINQ connectionstring?

    I'm using LINQ in visual studio using the DataClasses Where is the configuration file that contains the connecting string ? so i can change it

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    45
    You should be able to add a connection string to your project's App.config or Web.config .
    In App.Config :
    Code:
    <connectionStrings>
      <add name="connectionName" value="..." />
    </connectionStrings>
    And Code using data context
    Code:
    var context = new DataContext( "connectionName" );

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts