RelationalCommandBuilderExtensions.AddPropertyParameter 方法

定义

注意

Use overload with relationalTypeMapping

添加参数。

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

参数

commandBuilder
IRelationalCommandBuilder

命令生成器。

invariantName
String

标识此参数的键。 请注意, IRelationalParameter 仅表示参数的占位符,而不是实际值。 这是因为可以使用不同的参数值多次重复使用同一命令。

name
String

对数据库执行命令时要用于参数的名称。

property
IProperty

此参数的值将来自的属性。

返回

同一生成器实例,以便可以链接多个调用。

属性

适用于