Why don't you reference an existing connection string (connectionStrings section) and access it instead, like in ConfigurationManager.ConnectionStrings["name"].ConnectionString = "..." ?
On Tuesday, April 2, 2013 12:24:21 PM UTC+1, Sean Farrow wrote: > > Hi, > > > > I’m in the process of writing a console app that allows users to change > there connection string. > > I’ve got a connection string in an NHibernate section in an app.cinfig > file. > > Has anyone ever edited this programmatically before. > > Any help much appreciated. > > Regards > > Sean. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
