共用方式為


RelationalCommandBuilderExtensions.AddParameter 方法

定義

多載

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)

加入參數。

AddParameter(IRelationalCommandBuilder, String, String)

來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs

警告

Use overload which takes TypeMapping argument.

加入參數。

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name);
[System.Obsolete("Use overload which takes TypeMapping argument.")]
public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
[<System.Obsolete("Use overload which takes TypeMapping argument.")>]
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String) As IRelationalCommandBuilder

參數

commandBuilder
IRelationalCommandBuilder

命令產生器。

invariantName
String

識別此參數的索引鍵。 請注意, IRelationalParameter 只代表參數的預留位置,而不是實際值。 這是因為相同的命令可以使用不同的參數值多次重複使用。

name
String

針對資料庫執行命令時,要用於 參數的名稱。

傳回

相同的產生器實例,以便鏈結多個呼叫。

屬性

適用於

AddParameter(IRelationalCommandBuilder, String, String, IProperty)

來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs

警告

Use overload with relationalTypeMapping

加入參數。

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use overload with relationalTypeMapping")]
public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
[<System.Obsolete("Use overload with relationalTypeMapping")>]
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, property As IProperty) As IRelationalCommandBuilder

參數

commandBuilder
IRelationalCommandBuilder

命令產生器。

invariantName
String

識別此參數的索引鍵。 請注意, IRelationalParameter 只代表參數的預留位置,而不是實際值。 這是因為相同的命令可以使用不同的參數值多次重複使用。

name
String

針對資料庫執行命令時,要用於 參數的名稱。

property
IProperty

這個參數的類型會來自 的屬性。

傳回

相同的產生器實例,以便鏈結多個呼叫。

屬性

適用於

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

來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs

加入參數。

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool nullable);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, typeMapping As RelationalTypeMapping, nullable As Boolean) As IRelationalCommandBuilder

參數

commandBuilder
IRelationalCommandBuilder

命令產生器。

invariantName
String

識別此參數的索引鍵。 請注意, IRelationalParameter 只代表參數的預留位置,而不是實際值。 這是因為相同的命令可以使用不同的參數值多次重複使用。

name
String

針對資料庫執行命令時,要用於 參數的名稱。

typeMapping
RelationalTypeMapping

此屬性的類型對應,這個參數的值將來自該屬性。

nullable
Boolean

值,指出參數是否可以包含 Null 值。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

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

來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs

加入參數。

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping relationalTypeMapping, bool? nullable);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Nullable<bool> -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, relationalTypeMapping As RelationalTypeMapping, nullable As Nullable(Of Boolean)) As IRelationalCommandBuilder

參數

commandBuilder
IRelationalCommandBuilder

命令產生器。

invariantName
String

識別此參數的索引鍵。 請注意, IRelationalParameter 只代表參數的預留位置,而不是實際值。 這是因為相同的命令可以使用不同的參數值多次重複使用。

name
String

針對資料庫執行命令時,要用於 參數的名稱。

relationalTypeMapping
RelationalTypeMapping

此參數的關聯式別對應。

nullable
Nullable<Boolean>

值,指出參數是否可以包含 Null 值。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

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

來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs
來源:
RelationalCommandBuilderExtensions.cs

加入參數。

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping relationalTypeMapping, bool? nullable, System.Data.ParameterDirection direction = System.Data.ParameterDirection.Input);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Nullable<bool> * System.Data.ParameterDirection -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, relationalTypeMapping As RelationalTypeMapping, nullable As Nullable(Of Boolean), Optional direction As ParameterDirection = System.Data.ParameterDirection.Input) As IRelationalCommandBuilder

參數

commandBuilder
IRelationalCommandBuilder

命令產生器。

invariantName
String

識別此參數的索引鍵。 請注意, IRelationalParameter 只代表參數的預留位置,而不是實際值。 這是因為相同的命令可以使用不同的參數值多次重複使用。

name
String

針對資料庫執行命令時,要用於 參數的名稱。

relationalTypeMapping
RelationalTypeMapping

此參數的關聯式別對應。

nullable
Nullable<Boolean>

值,指出參數是否可以包含 Null 值。

direction
ParameterDirection

參數方向。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於