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.

在使用此枚举SqlMethodAttributeSqlFunctionAttribute以指示是否方法或函数使用 ADO.NET 连接回数据库使用"context connection"。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).

适用于