The Microsoft Ent Lib Database function seems to only accept a Key setting from the app.config file.
I need to pass in my own connection string that is built up from user input.
Does anyone know of another function in Ent Lib that will accept my own string?
When I try to use mine in the database command, it gives me:
So how can I just pass my own connection string?
Or should I just use the System.Sql methods? (I'd prefer to use the ent lib though)
I need to pass in my own connection string that is built up from user input.
Does anyone know of another function in Ent Lib that will accept my own string?
When I try to use mine in the database command, it gives me:
Code:
The requested database Data Source = [i]server[/i];Initial Catalog = [i]catalog[/i];Persist Security Info=True; User ID = [i]userlogin[/i] ; Pwd = [i]pwd[/i]; is not defined in configuration.
So how can I just pass my own connection string?
Or should I just use the System.Sql methods? (I'd prefer to use the ent lib though)