我试图弄清楚如何从我的 Silverlight 应用程序中调用存储过程。我可以使用这个函数调用数据库:
<OperationContract()>
Public Function ImportData(
ByVal authentication As AuthenticationArgs,
ByVal caseID As String) As ResponseArgs(Of GetGuidelineData_Result)
Dim guidelineDataResults As GetGuidelineData_Result
Dim exception As ExceptionArgs = Nothing
If AuthenticationService.CheckPermissions(authentication, exception, PermissionType.StateUser) Then
Try
Dim model As DCF_ACCESS_Model = DataHelper.CreateDCF_ACCESS_Model()
model.GetGuidelineData(caseID)
Catch ex As Exception
Return New ResponseArgs(Of GetGuidelineData_Result)(New ExceptionArgs(ex.Message))
End Try
Return New ResponseArgs(Of GetGuidelineData_Result)(guidelineDataResults)
Else
Return New ResponseArgs(Of GetGuidelineData_Result)(exception)
End If
End Function
我怎样才能修改代码来调用存储过程呢?存储过程 GetGuidelineData 将 1 个参数作为输入。