DBObject problem
I have two questions in DBOject:
1. in following function:
Protected Overloads Function RunProcedure( _
à à ByVal storedProcName As String, _
à à ByVal parameters As IDataParameter()) _
à à As SqlDataReader
à à Dim returnReader As SqlDataReader
is it neceassary to write:
command.CommandType = CommandType.StoredProcedure
we have done it before in BuildQueryCommand function
2. in following fuction
à Protected Overloads Sub RunProcedure( _
à à ByVal storedProcName As String, _
à à ByVal parameters As IDataParameter(), _
à à ByVal dataSet As DataSet, _
à à ByVal tableName As String)
dataSet parameter should be ByVal or ByRef? because we must change it in function
Thank you,
Masoud
|