ExecuteStoredProcedure(T) Method (String, ParameterSet)
Executes the stored procedure using the specified parameters.
Namespace: Microsoft.Dynamics.Commerce.Runtime.Data
Assembly: Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)
Syntax
'Declaration
Protected Function ExecuteStoredProcedure(Of T As {New, CommerceEntity}) ( _
procedureName As String, _
parameters As ParameterSet _
) As ReadOnlyCollection(Of T)
'Usage
Dim procedureName As String
Dim parameters As ParameterSet
Dim returnValue As ReadOnlyCollection(Of T)
returnValue = Me.ExecuteStoredProcedure(procedureName, _
parameters)
protected ReadOnlyCollection<T> ExecuteStoredProcedure<T>(
string procedureName,
ParameterSet parameters
)
where T : new(), CommerceEntity
protected:
generic<typename T>
where T : gcnew(), CommerceEntity
ReadOnlyCollection<T>^ ExecuteStoredProcedure(
String^ procedureName,
ParameterSet^ parameters
)
Type Parameters
- T
Parameters
- procedureName
Type: System.String
- parameters
Type: Microsoft.Dynamics.Commerce.Runtime.ParameterSet
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<T>
A collection of CommerceEntity objects.