Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Reading connection string from App.config using LINQ

Reading connection string from App.config using LINQ

Scheduled Pinned Locked Moved Managed C++/CLI
databasecsharpsql-serverlinqsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wheels012
    wrote on last edited by
    #1

    Good morning. I am having a challenge deriving a connection string from my App.config. It is laid out for a special way of connection to SQL Server and Teradata, and using AppSettings is not possible. I would like to query for the value using LINQ or Lamda, but I don't have a great deal of experience in either.

    L 1 Reply Last reply
    0
    • W Wheels012

      Good morning. I am having a challenge deriving a connection string from my App.config. It is laid out for a special way of connection to SQL Server and Teradata, and using AppSettings is not possible. I would like to query for the value using LINQ or Lamda, but I don't have a great deal of experience in either.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Wheels012 wrote:

      I would like to query for the value using LINQ or Lamda, but I don't have a great deal of experience in either.

      Why would you want it in "LINQ or Lambda"? (Without using the "it looks cool" argument) A XmlDocument could be used, just looping nodes and returning the desired value.

      Bastard Programmer from Hell :suss:

      W 1 Reply Last reply
      0
      • L Lost User

        Wheels012 wrote:

        I would like to query for the value using LINQ or Lamda, but I don't have a great deal of experience in either.

        Why would you want it in "LINQ or Lambda"? (Without using the "it looks cool" argument) A XmlDocument could be used, just looping nodes and returning the desired value.

        Bastard Programmer from Hell :suss:

        W Offline
        W Offline
        Wheels012
        wrote on last edited by
        #3

        That is a good idea. I'll give it a shot. Thank you.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups