DataAccessKind DataAccessKind DataAccessKind DataAccessKind Enum

定义

描述用户定义的方法或函数所使用的用户数据访问类型。Describes the type of access to user data for a user-defined method or function.

public enum class DataAccessKind
[System.Serializable]
public enum DataAccessKind
type DataAccessKind = 
Public Enum DataAccessKind
继承
DataAccessKindDataAccessKindDataAccessKindDataAccessKind
属性

字段

None None None None 0

该方法或函数不访问用户数据。The method or function does not access user data.

Read Read Read Read 1

该方法或函数读取用户数据。The method or function reads user data.

注解

描述用户定义的方法或函数所使用的用户数据访问类型。Describes the type of access to user data for a user-defined method or function.

此枚举在和SqlMethodAttribute SqlFunctionAttribute中用于指示方法或函数是否使用 ADO.NET 通过 "上下文连接" 连接回数据库。This enumeration is used in SqlMethodAttribute and SqlFunctionAttribute to indicate whether the method or function uses ADO.NET to connect back to the database using the "context connection."

请注意, 不允许方法和函数对数据库进行更改, 因此此枚举None的选项为 (意味着没有由方法或函数执行的数据访问) 和Read (表示方法或函数执行只读数据访问操作, 如执行 SELECT 语句)。Note that methods and functions are not allowed to make changes to the database, so the options for this enumeration are None (meaning no data-access performed by the method or function) and Read (meaning that the method or function perform read-only data-access operations, such as executing SELECT statements).

适用于