Share via


IRelationalCommandBuilder 介面

定義

建置要針對關係資料庫執行的命令。

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

public interface IRelationalCommandBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder>
public interface IRelationalCommandBuilder
type IRelationalCommandBuilder = interface
    interface IInfrastructure<IndentedStringBuilder>
type IRelationalCommandBuilder = interface
Public Interface IRelationalCommandBuilder
Implements IInfrastructure(Of IndentedStringBuilder)
Public Interface IRelationalCommandBuilder
衍生
實作
IInfrastructure<Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder>

備註

如需詳細資訊 和範例,請參閱資料庫提供者和延伸模組的實作

屬性

CommandTextLength

取得命令文字的長度。

Instance

取得隱藏之屬性的值。

(繼承來源 IInfrastructure<T>)
ParameterBuilder

建置與此命令相關聯的參數。

Parameters

參數的集合。

TypeMappingSource
已淘汰.

要使用的來源 RelationalTypeMapping

方法

AddParameter(IRelationalParameter)

將指定的參數新增至此命令。

Append(Object)

將 物件附加至命令文字。

Append(String)

將 物件附加至命令文字。

AppendLine()

將空白行附加至命令文字。

Build()

建立 命令。

DecrementIndent()

遞減後續行的縮排。

IncrementIndent()

遞增後續行的縮排。

RemoveParameterAt(Int32)

從此命令中移除具有指定索引的參數。

擴充方法

GetInfrastructure<T>(IInfrastructure<T>)

從使用 IInfrastructure<T> 隱藏的屬性取得值。

這個方法通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

AddCompositeParameter(IRelationalCommandBuilder, String, Action<IRelationalParameterBuilder>)

在最終命令中加入最後以多個 DbParameter 表示的參數。

AddCompositeParameter(IRelationalCommandBuilder, String, IReadOnlyList<IRelationalParameter>)

在最終命令中加入最後以多個 DbParameter 表示的參數。

AddParameter(IRelationalCommandBuilder, String, String)
已淘汰.

加入參數。

AddParameter(IRelationalCommandBuilder, String, String, IProperty)
已淘汰.

加入參數。

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Boolean)

加入參數。

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>)

加入參數。

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>, ParameterDirection)

加入參數。

AddPropertyParameter(IRelationalCommandBuilder, String, String, IProperty)
已淘汰.

加入參數。

AddRawParameter(IRelationalCommandBuilder, String, DbParameter)

加入參數。

Append(IRelationalCommandBuilder, Object)

將 物件附加至命令文字。

AppendLine(IRelationalCommandBuilder)

將空白行附加至命令文字。

AppendLine(IRelationalCommandBuilder, Object)

將 物件附加至新行上的命令文字。

AppendLine(IRelationalCommandBuilder, String)

將 物件附加至新行上的命令文字。

AppendLines(IRelationalCommandBuilder, Object)

將包含多行文字的物件附加至命令文字。 從 物件讀取的每一行都會附加在新行上。

AppendLines(IRelationalCommandBuilder, Object, Boolean)

將包含多行文字的物件附加至命令文字。 從 物件讀取的每一行都會附加在新行上。

AppendLines(IRelationalCommandBuilder, String, Boolean)

將包含多行文字的物件附加至命令文字。 從 物件讀取的每一行都會附加在新行上。

DecrementIndent(IRelationalCommandBuilder)

遞減後續行的縮排。

GetLength(IRelationalCommandBuilder)

取得命令文字的長度。

IncrementIndent(IRelationalCommandBuilder)

遞增後續行的縮排。

Indent(IRelationalCommandBuilder)

增加命令文字的縮排。

適用於