語言

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>

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

屬性

名稱 Description
CommandTextLength

能取得指令文字的長度。

Instance

取得隱藏財產的價值。

(繼承來源 IInfrastructure<T>)
ParameterBuilder

建立與此指令相關的參數。

Parameters

參數的集合。

TypeMappingSource
已淘汰.

使用 S 的來源 RelationalTypeMapping。

方法

名稱 Description
AddParameter(IRelationalParameter)

將給定參數加入此指令。

Append(FormattableString, Boolean)

在指令文本中附加物件。

Append(Object)

在指令文本中附加物件。

Append(String, Boolean)

在指令文本中附加物件。

Append(String)

在指令文本中附加物件。

AppendLine()

在指令文字後附加一行空白。

Build()

建立指令。

DecrementIndent()

減少後續行的縮排。

IncrementIndent()

遞增後續行的縮排。

RemoveParameterAt(Int32)

移除此指令中帶有該索引的參數。

擴充方法

名稱 Description
AddCompositeParameter(IRelationalCommandBuilder, String, Action<IRelationalParameterBuilder>)

新增一個參數,最終在最後指令中以多個 DbParameters 表示。

AddCompositeParameter(IRelationalCommandBuilder, String, IReadOnlyList<IRelationalParameter>)

新增一個參數,最終在最後指令中以多個 DbParameters 表示。

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

加入參數。

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

加入參數。

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

加入參數。

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

加入參數。

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

加入參數。

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

加入參數。

AddRawParameter(IRelationalCommandBuilder, String, DbParameter)

加入參數。

Append(IRelationalCommandBuilder, Object)

在指令文本中附加物件。

AppendLine(IRelationalCommandBuilder, FormattableString)

在新行的命令文字中附加物件。

AppendLine(IRelationalCommandBuilder, Object)

在新行的命令文字中附加物件。

AppendLine(IRelationalCommandBuilder, String)

在新行的命令文字中附加物件。

AppendLine(IRelationalCommandBuilder)

在指令文字後附加一行空白。

AppendLines(IRelationalCommandBuilder, Object, Boolean)

將包含多行文字的物件附加到指令文字後。 從物件讀取的每一行都會被附加到新的一行上。

AppendLines(IRelationalCommandBuilder, Object)

將包含多行文字的物件附加到指令文字後。 從物件讀取的每一行都會被附加到新的一行上。

AppendLines(IRelationalCommandBuilder, String, Boolean)

將包含多行文字的物件附加到指令文字後。 從物件讀取的每一行都會被附加到新的一行上。

DecrementIndent(IRelationalCommandBuilder)

減少後續行的縮排。

GetInfrastructure<T>(IInfrastructure<T>)

從一個被隱藏的屬性中取得價值 IInfrastructure<T>。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetLength(IRelationalCommandBuilder)

能取得指令文字的長度。

IncrementIndent(IRelationalCommandBuilder)

遞增後續行的縮排。

Indent(IRelationalCommandBuilder)

增加指令文字的縮排。

適用於