TableAdapter query parameter taken from config file
-
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
-
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
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.”
-
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.”
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.
-
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.
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.”