Databases Reference
In-Depth Information
{
FillView();
}
return (IDataReader) new DataSetDataReader(this);
}
VB.NET
Public Function ExecuteReader(ByVal behavior As CommandBehavior) As IdataReader
Implements IDbCommand.ExecuteReader
If Not (behavior = CommandBehavior.SchemaOnly) AndAlso Not useDefaultTable Then
FillView()
End If
Return CType(New DataSetDataReader(Me), IDataReader)
End Function
CommandText Property
Reporting Services does not manually create a separate command object. It uses the CreateCommand
method of the IDBConnection interface to return an implementation-specific command object. You will be
using the CommandText property to help us build the data schema that we will return, as well as filling
your data source for use of Reporting Services. This method has been broken down into methods reflecting
the actual work being done and to facilitate this discussion. Notice the ValidateCommandText method.
This method is the entry point for your text-parsing and table-building process.
C#
public String CommandText
{
get
{
return (this.m_commandText);
}
set
{
ValidateCommandText(value);
this.m_commandText = value;
}
}
VB.NET
Public Property CommandText() As String Implements IDbCommand.CommandText
Get
Return (Me.m_commandText)
End Get
Set(ByVal value As String)
ValidateCommandText(value)
Me.m_commandText = value
End Set
End Property
Search WWH ::




Custom Search