語言

RelationalCommandBuilder 類別

定義

建立一個指令,對關聯式資料庫執行。

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

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalCommandBuilder : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
public class RelationalCommandBuilder : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalCommandBuilder = class
    interface IRelationalCommandBuilder
type RelationalCommandBuilder = class
    interface IRelationalCommandBuilder
Public Class RelationalCommandBuilder
Implements IRelationalCommandBuilder
繼承
RelationalCommandBuilder
屬性
實作

備註

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

建構函式

名稱 Description
RelationalCommandBuilder(RelationalCommandBuilderDependencies)

建構新的 RelationalCommand。

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

屬性

名稱 Description
CommandTextLength

能取得指令文字的長度。

Dependencies

此服務的關聯提供者專屬相依關係。

Parameters

參數的集合。

TypeMappingSource
已淘汰.

使用 S 的來源 RelationalTypeMapping。

方法

名稱 Description
AddParameter(IRelationalParameter)

將給定參數加入此指令。

Append(FormattableString, Boolean)

在指令文本中附加物件。

Append(Object)

在指令文本中附加物件。

Append(String, Boolean)

在指令文本中附加物件。

Append(String)

在指令文本中附加物件。

AppendLine()

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

Build()

建立指令。

DecrementIndent()

減少後續行的縮排。

IncrementIndent()

遞增後續行的縮排。

RemoveParameterAt(Int32)

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

ToString()

收到指令文字。

擴充方法

名稱 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)

減少後續行的縮排。

GetLength(IRelationalCommandBuilder)

能取得指令文字的長度。

IncrementIndent(IRelationalCommandBuilder)

遞增後續行的縮排。

Indent(IRelationalCommandBuilder)

增加指令文字的縮排。

適用於