Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - .NET Programming » UltraLite .NET 2.0 API Reference » ULDataAdapter class

InsertCommand property Next Page

SelectCommand property


Specifies a ULCommand that is used during System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet) or System.Data.Common.DbDataAdapter.FillSchema(System.Data.DataSet,System.Data.SchemaType) to obtain a result set from the database for copying into a System.Data.DataSet.

Syntax

Visual Basic

Public Property SelectCommand As ULCommand

C#

public ULCommand SelectCommand { get; set; }

Property value

A ULCommand object that is executed to fill the System.Data.DataSet.

Remarks

When SelectCommand is assigned to an existing ULCommand object, the ULCommand object is not cloned. The SelectCommand maintains a reference to the existing ULCommand.

If the SelectCommand does not return any rows, no tables are added to the System.Data.DataSet, and no exception is raised. The SELECT statement can also be specified in the ULDataAdapter(ULCommand)"/>, ULDataAdapter(String,ULConnection), or ULDataAdapter(String,String) constructors.

This is the strongly-typed version of System.Data.IDbDataAdapter.SelectCommand and System.Data.Common.DbDataAdapter.SelectCommand.

See also