DataSourceOperation DataSourceOperation DataSourceOperation DataSourceOperation Enum

定义

指定数据源控件执行的数据操作。Specifies a data operation performed by a data source control.

public enum class DataSourceOperation
public enum DataSourceOperation
type DataSourceOperation = 
Public Enum DataSourceOperation
继承
DataSourceOperationDataSourceOperationDataSourceOperationDataSourceOperation

字段

Delete Delete Delete Delete 0

该操作将从数据源中删除记录。The operation deletes records from a data source.

Insert Insert Insert Insert 1

该操作将一条或多条记录插入数据源中。The operation inserts one or more records into a data source.

Select Select Select Select 2

该操作将从数据源中检索记录。The operation retrieves records from a data source.

SelectCount SelectCount SelectCount SelectCount 4

该操作将从数据源中检索查询记录的总数。The operation retrieves the total number of records for a query from the data source.

Update Update Update Update 3

该操作将更新数据源中的记录。The operation updates records in a data source.

注解

DataSourceOperation枚举表示数据源控件可以对其基础数据执行的操作。The DataSourceOperation enumeration represents the actions that a data source control can perform on its underlying data. 数据源控件,如SqlDataSourceObjectDataSource使用这些枚举值来跟踪正在执行的操作类型。Data source controls such as SqlDataSource and ObjectDataSource use these enumeration values to track the type of operation being performed.

五个主要数据源操作表示为DataSourceOperation枚举。The five major data source operations are represented by the DataSourceOperation enumeration. 选择和 SelectCount 值指示从基础数据源,而 Delete、 Insert、 检索数据的操作和更新的值指示修改数据的操作。The Select and SelectCount values indicate operations that retrieve data from an underlying data source, while the Delete, Insert, and Update values indicate operations that modify data.

适用于