DataAccessKind 枚举
定义
描述用户定义的方法或函数所使用的用户数据访问类型。Describes the type of access to user data for a user-defined method or function.
public enum class DataAccessKind
public enum DataAccessKind
[System.Serializable]
public enum DataAccessKind
type DataAccessKind =
[<System.Serializable>]
type DataAccessKind =
Public Enum DataAccessKind
- 继承
- 属性
字段
| None | 0 | 该方法或函数不访问用户数据。The method or function does not access user data. |
| 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).