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
Post a Comment