Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > How to add DbParameterCollection to a command
 

How to add DbParameterCollection to a command

Hi
i have a collection of parameters that i prepared and i want to send all of to my command how?

thanks in advance.
seco  Wednesday, August 08, 2007 7:46 AM

Hi seco,

Check the followingthread for help:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1959607&SiteID=1

Also, Microsoft has provide a Enterprise Library Data Access Application Block that implement common data access functionality. Check this page on MSDN

Hope thie helps.

Regards

Rong-Chun Zhang  Monday, August 13, 2007 10:09 AM

Hi seco,

I am not quite following what you want. To add parameters to a command, we can useDbCommand.Parameters.AddRange method.

Hope this helps.

Regards

Rong-Chun Zhang  Thursday, August 09, 2007 6:42 AM
thanks for reply
i can't instantiate an instance of DbparameterCollection !!!

i want to send all of the parameters as a parameter to my sub like

Private Sub mysub(myparameter as DbParameterCollection)
'add my parameters to the command
end sub


thanks.
seco  Thursday, August 09, 2007 7:24 AM

Hi seco,

Check the followingthread for help:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1959607&SiteID=1

Also, Microsoft has provide a Enterprise Library Data Access Application Block that implement common data access functionality. Check this page on MSDN

Hope thie helps.

Regards

Rong-Chun Zhang  Monday, August 13, 2007 10:09 AM

You can use google to search for other answers

Custom Search

More Threads

• Formatting a cell in a datagrid
• DataGridViewComboBoxColumn
• Opening a form by dobble-clicking af cell in a datagridview
• Unbound DatagridView Sorting
• CLR Relationship Objects DataSource
• Set/unset DataGrid columns ReadOnly
• unbound datagridview
• Export columns from datagridview to Excel
• Trimming leading and trailing spaces from SQL Server 2005 Express using VC# 2005 to view in Datagridview.
• radio button in datagridview?