DatabaseGetStoredProcCommandWithSourceColumns Method
| Retired Content |
|---|
|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Wraps around a derived class's implementation of the GetStoredProcCommandWrapper method and adds functionality for
using this method with UpdateDataSet. The GetStoredProcCommandWrapper method (above) that takes a params array
expects the array to be filled with VALUES for the parameters. This method differs from the GetStoredProcCommandWrapper
method in that it allows a user to pass in a string array. It will also dynamically discover the parameters for the
stored procedure and set the parameter's SourceColumns to the strings that are passed in. It does this by mapping
the parameters to the strings IN ORDER. Thus, order is very important.
Namespace:
Microsoft.Practices.EnterpriseLibrary.DataAssembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)
public DbCommand GetStoredProcCommandWithSourceColumns( string storedProcedureName, params string[] sourceColumns )
Parameters
- storedProcedureName
- Type: SystemString
The name of the stored procedure.
- sourceColumns
- Type:
SystemString
The list of DataFields for the procedure.
Return Value
The DbCommand for the stored procedure.
| Retired Content |
|---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |