来自指定的命令返回派生的架构,指示项和布局块中特定数据读取器。
命名空间: Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Protected Overridable Function DeriveSchemaCore ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer _
) As IVsDataReader
protected virtual IVsDataReader DeriveSchemaCore(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout
)
protected:
virtual IVsDataReader^ DeriveSchemaCore(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout
)
abstract DeriveSchemaCore :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
override DeriveSchemaCore :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> IVsDataReader
protected function DeriveSchemaCore(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int
) : IVsDataReader
参数
command
类型:String数据源特定命令可以派生架构。
commandType
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType指示的命令类型,指定如何解释 command 参数的内容。
parameters
类型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]数组中指定的命令类型的 AdoDotNetParameter 对象。
commandTimeout
类型:Int32时间长度,为,在移除架构派生并返回之前阻止客户给调用方。 值为零将无限超时;值 -1 指示为默认提供程序。
返回值
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
表示命令架构的 IVsDataReader 对象的实例。
备注
数据读取器的架构必须返回此方法遵循特定的格式。 对于将返回,当执行命令时,应在数据读取器的结果的每个结果。 这些结果中的每一个都应当包含描述该项将返回,在执行命令的块。 说明应包含以下项:
名称 (字符串):项的名称。
序号 (Int32): 项的位置。
UserDataType (字符串):项 (例如,“myType”) 用户数据类型。
NativeDataType (字符串):项 (例如,“”) nvarchar 本机数据类型。
ProviderDataType (Int32):项 (例如,System.Data.DbType.StringFixedLength) 的提供程序数据类型。
FrameworkDataType (类型):项 (例如) 的框架,System.Int32 数据类型。
长度 (Int32):项的最大长度,如果适用)。
Int32 (精度):项的精度,如果适用)。
缩放 (Int32):项的缩放,如果适用)。
获得 (布尔值):项的 nullability。
提供程序不支持的那些项 (例如,数据类型的某个窗体) 应该存在,但设置为 nullnull 引用(在 Visual Basic 中为 Nothing)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。