c# - Using MS Moles with datacontext and stored procedures without using a Connection string -


i have begun work ms moles testing , have followed idea/pattern in jcollum(thanks) uses mole table in stackoverflow question here.

but having problem not want have pass connection string when use datasource such:

using (thedatacontext datacontext = new thedatacontext(myconnectionstring)) {    datacontext.executestoredprocedure(value, ref valueexists); } 

i fact need mole table , else done me. realize mole executestoredprocedure method, wondering if somehow avoid sql exception getting here when not pass in connection string. or, if there better way this?

therefore, have solution can avoid placing in connection string? in advance.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -