Share via


SqlCeCommand Members

Represents an SQL statement to execute against a data source.

The SqlCeCommand type exposes the following members.

Constructors

  Name Description
Public method SqlCeCommand() () () () Initializes a new instance of the SqlCeCommand class.
Public method SqlCeCommand(String) Initializes a new instance of the SqlCeCommand class with the text of the query.
Public method SqlCeCommand(String, SqlCeConnection) Initializes a new instance of the SqlCeCommand class with the text of the query and a SqlCeConnection.
Public method SqlCeCommand(String, SqlCeConnection, SqlCeTransaction) Initializes a new instance of the SqlCeCommand class with the text of the query, a SqlCeConnection, and the SqlCeTransaction.

Top

Methods

  Name Description
Public method Cancel() () () () Attempts to cancel the execution of a SqlCeCommand. (Overrides DbCommand. . :: . .Cancel() () () ().)
Protected method CreateDbParameter() () () () (inherited from DbCommand)
Public method CreateObjRef(Type) (inherited from MarshalByRefObject)
Public method CreateParameter() () () () Creates a new instance of a SqlCeParameter object.
Public method Dispose() () () () (inherited from Component)
Protected method Dispose(Boolean) (inherited from Component)
Public method Equals(Object) (inherited from Object)
Protected method ExecuteDbDataReader(CommandBehavior) (inherited from DbCommand)
Public method ExecuteNonQuery() () () () Executes an SQL statement against the SqlCeConnection and returns the number of rows affected. (Overrides DbCommand. . :: . .ExecuteNonQuery() () () ().)
Public method ExecuteReader() () () () Sends the CommandText to the Connection and builds a SqlCeDataReader.
Public method ExecuteReader(CommandBehavior) Sends the CommandText to the Connection and builds a SqlCeDataReader by using one of the CommandBehavior values.
Public method ExecuteResultSet(ResultSetOptions) Sends the CommandText to the Connection and builds a SqlCeResultSet by using the ResultSetOptions.
Public method ExecuteResultSet(ResultSetOptions, SqlCeResultSet) Sends the CommandText to the Connection and builds a SqlCeResultSet by using the ResultSetOptions.
Public method ExecuteScalar() () () () Executes the query and returns the first column of the first row in the result set that is returned by the query. Extra columns or rows are ignored. (Overrides DbCommand. . :: . .ExecuteScalar() () () ().)
Protected method Finalize() () () () (inherited from Component)
Public method GetHashCode() () () () (inherited from Object)
Public method GetLifetimeService() () () () (inherited from MarshalByRefObject)
Protected method GetService(Type) (inherited from Component)
Public method GetType() () () () (inherited from Object)
Public method InitializeLifetimeService() () () () (inherited from MarshalByRefObject)
Protected method MemberwiseClone() () () () (inherited from Object)
Protected method MemberwiseClone(Boolean) (inherited from MarshalByRefObject)
Public method Prepare() () () () Creates a prepared (or compiled) version of the command on the data source. (Overrides DbCommand. . :: . .Prepare() () () ().)
Public method SetRange(DbRangeOptions, array<Object> [] () [] [], array<Object> [] () [] []) Restricts the set of rows that will be read by the SqlCeDataReader.
Public method ToString() () () () (inherited from Component)

Top

Properties

  Name Description
Protected property CanRaiseEvents (inherited from Component)
Public property CommandText Gets or sets an SQL statement to execute at the data source. (Overrides DbCommand. . :: . .CommandText.)
Public property CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error. (Overrides DbCommand. . :: . .CommandTimeout.)
Public property CommandType Gets or sets a value indicating how the CommandText property is interpreted. (Overrides DbCommand. . :: . .CommandType.)
Public property Connection Gets or sets the SqlCeConnection used by this instance of the SqlCeCommand.
Public property Container (inherited from Component)
Protected property DbConnection (inherited from DbCommand)
Protected property DbParameterCollection (inherited from DbCommand)
Protected property DbTransaction (inherited from DbCommand)
Protected property DesignMode (inherited from Component)
Public property DesignTimeVisible Get always returns false; set always throws a NotSupportedException. (Overrides DbCommand. . :: . .DesignTimeVisible.)
Protected property Events (inherited from Component)
Public property IndexName Specifies the index to be opened.
Public property Parameters Gets the SqlCeParameterCollection.
Public property Site (inherited from Component)
Public property Transaction Gets or sets the transaction in which the SqlCeCommand executes.
Public property UpdatedRowSource Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter. This property should not be used with the .NET Compact Framework Data Provider for . (Overrides DbCommand. . :: . .UpdatedRowSource.)

Top

Events

  Name Description
Public event Disposed (inherited from Component)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICloneable. . :: . .Clone() () () ()
Explicit interface implemetationPrivate property IDbCommand. . :: . .Connection (inherited from DbCommand)
Explicit interface implemetationPrivate method IDbCommand. . :: . .CreateParameter() () () () (inherited from DbCommand)
Explicit interface implemetationPrivate method IDbCommand. . :: . .ExecuteReader() () () () (inherited from DbCommand)
Explicit interface implemetationPrivate method IDbCommand. . :: . .ExecuteReader(CommandBehavior) (inherited from DbCommand)
Explicit interface implemetationPrivate property IDbCommand. . :: . .Parameters (inherited from DbCommand)
Explicit interface implemetationPrivate property IDbCommand. . :: . .Transaction (inherited from DbCommand)

Top

See Also

Reference

SqlCeCommand Class

System.Data.SqlServerCe Namespace