TeamFoundationSqlResourceComponent.PrepareSqlBatch 方法 (Int32, Boolean)
设置执行批处理 SQL 语句。 此方法将关闭所有现有命令或读取器。
命名空间: Microsoft.TeamFoundation.Framework.Server
程序集: Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)
语法
声明
Protected Function PrepareSqlBatch ( _
lengthEstimate As Integer, _
bindPartitionId As Boolean _
) As SqlCommand
protected SqlCommand PrepareSqlBatch(
int lengthEstimate,
bool bindPartitionId
)
参数
- lengthEstimate
类型:System.Int32
字符数的最佳并在要执行的 SQL 语句。不必完全相同。
- bindPartitionId
类型:System.Boolean
如果为 true,当前服务托管分区 ID 绑定到 @partitionId
返回值
类型:System.Data.SqlClient.SqlCommand
初始化的 SqlCommand 对象
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。