Export (0) Print
Expand All

SqlCeCommand.UpdatedRowSource Property

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 SQL Server Compact.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public override UpdateRowSource UpdatedRowSource { get; set; }

Property Value

Type: System.Data.UpdateRowSource
One of the UpdateRowSource values. The default is Both. If the command is automatically generated, the default is None.

Implements

IDbCommand.UpdatedRowSource

ExceptionCondition
ArgumentException

The value entered was not one of the UpdateRowSource values.

SqlCeCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM Categories ORDER BY CategoryID";
cmd.CommandType = CommandType.Text;
cmd.UpdatedRowSource = UpdateRowSource.Both;


Show:
© 2015 Microsoft