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. .NET (Core and Framework)
  4. TableAdapter query parameter taken from config file

TableAdapter query parameter taken from config file

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasequestion
4 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.
  • L Offline
    L Offline
    LordZoster
    wrote on last edited by
    #1

    Hallo i have a parametric query which fills a TableAdapter. I would like that the parameter value be read from the app config file. How could I achieve this? Thanks in advance

    H 1 Reply Last reply
    0
    • L LordZoster

      Hallo i have a parametric query which fills a TableAdapter. I would like that the parameter value be read from the app config file. How could I achieve this? Thanks in advance

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Search for Application Settings on MSDN, or Google/Bing it. But are you sure? The config file is an easily editable XML file. You will be leaving yourself open to mischief. Is that better Luc?

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      L 1 Reply Last reply
      0
      • H Henry Minute

        Search for Application Settings on MSDN, or Google/Bing it. But are you sure? The config file is an easily editable XML file. You will be leaving yourself open to mischief. Is that better Luc?

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        L Offline
        L Offline
        LordZoster
        wrote on last edited by
        #3

        Hallo Henry and thanks for the reply. I've already googled but I cannot find any resource to link TableAdapter and Application Settings. I'm aware of possible issues, but they are not risky for us for the environment we are addressing to. Thanks again.

        H 1 Reply Last reply
        0
        • L LordZoster

          Hallo Henry and thanks for the reply. I've already googled but I cannot find any resource to link TableAdapter and Application Settings. I'm aware of possible issues, but they are not risky for us for the environment we are addressing to. Thanks again.

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          In your original post you said "I would like that the parameter value be read from the app config file.". Well if you read the stuff you found on Application Settings you should have found how to retrieve the value of the parameter from yourapp.exe.config. It is then a simple matter to use the retrieved value where you use your current parameter. Or is it that part that you require assistance with? If so I misunderstood your OP.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          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