Standard db access component

G

Guy Incognito

Hello,

I've developed a component that encapsulates common database activities.

This example creates a parameter array and executes a stored procedure:

SqlParameter[] list = {
SqlTool.GetParameter("@ID", 11),
SqlTool.GetParameter("@name", "Steve")
}

SqlTool.ExecuteNonQuery("spUpdateName", list);

The type of the parameter is determined by polymorphism. The connection
string is taken from a key in web.config.

Here's my question: Is there a commonly used component for this kind of
thing? I've heard that Microsoft has one, but I haven't been able to
find it on their site.

Thanks,
Jason


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top