StoredProcedureBuilder<TEntity>.HasParameter 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HasParameter(String) |
如果不存在映射到给定属性的参数,则配置新参数。 |
HasParameter(String, Action<StoredProcedureParameterBuilder>) |
如果不存在映射到给定属性的参数,则配置新参数。 |
HasParameter<TDerivedEntity,TProperty>(Expression<Func<TDerivedEntity,TProperty>>, Action<StoredProcedureParameterBuilder>) |
如果不存在映射到给定属性的参数,则配置新参数。 |
HasParameter<TDerivedEntity,TProperty>(Expression<Func<TDerivedEntity,TProperty>>) |
如果不存在映射到给定属性的参数,则配置新参数。 |
HasParameter<TProperty>(Expression<Func<TEntity,TProperty>>) |
如果不存在映射到给定属性的参数,则配置新参数。 |
HasParameter<TProperty>(Expression<Func<TEntity,TProperty>>, Action<StoredProcedureParameterBuilder>) |
如果不存在映射到给定属性的参数,则配置新参数。 |
HasParameter(String)
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
如果不存在映射到给定属性的参数,则配置新参数。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasParameter (string propertyName);
override this.HasParameter : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasParameter (propertyName As String) As StoredProcedureBuilder(Of TEntity)
参数
- propertyName
- String
属性名称。
返回
同一生成器实例,以便可以链接多个配置调用。
适用于
HasParameter(String, Action<StoredProcedureParameterBuilder>)
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
如果不存在映射到给定属性的参数,则配置新参数。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasParameter (string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureParameterBuilder> buildAction);
override this.HasParameter : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureParameterBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasParameter (propertyName As String, buildAction As Action(Of StoredProcedureParameterBuilder)) As StoredProcedureBuilder(Of TEntity)
参数
- propertyName
- String
参数名称。
- buildAction
- Action<StoredProcedureParameterBuilder>
执行参数配置的操作。
返回
同一生成器实例,以便可以链接多个配置调用。
适用于
HasParameter<TDerivedEntity,TProperty>(Expression<Func<TDerivedEntity,TProperty>>, Action<StoredProcedureParameterBuilder>)
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
如果不存在映射到给定属性的参数,则配置新参数。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasParameter<TDerivedEntity,TProperty> (System.Linq.Expressions.Expression<Func<TDerivedEntity,TProperty>> propertyExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureParameterBuilder> buildAction) where TDerivedEntity : class, TEntity;
override this.HasParameter : System.Linq.Expressions.Expression<Func<#'Entity, 'Property>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureParameterBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasParameter(Of TDerivedEntity As {Class, TEntity}, TProperty As {Class, TEntity}) (propertyExpression As Expression(Of Func(Of TDerivedEntity, TProperty)), buildAction As Action(Of StoredProcedureParameterBuilder)) As StoredProcedureBuilder(Of TEntity)
类型参数
- TDerivedEntity
- TProperty
参数
- propertyExpression
- Expression<Func<TDerivedEntity,TProperty>>
一个 lambda 表达式,表示要 (blog => blog.Url
) 配置的属性。
- buildAction
- Action<StoredProcedureParameterBuilder>
执行参数配置的操作。
返回
同一生成器实例,以便可以链接多个配置调用。
适用于
HasParameter<TDerivedEntity,TProperty>(Expression<Func<TDerivedEntity,TProperty>>)
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
如果不存在映射到给定属性的参数,则配置新参数。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasParameter<TDerivedEntity,TProperty> (System.Linq.Expressions.Expression<Func<TDerivedEntity,TProperty>> propertyExpression) where TDerivedEntity : class, TEntity;
override this.HasParameter : System.Linq.Expressions.Expression<Func<#'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasParameter(Of TDerivedEntity As {Class, TEntity}, TProperty As {Class, TEntity}) (propertyExpression As Expression(Of Func(Of TDerivedEntity, TProperty))) As StoredProcedureBuilder(Of TEntity)
类型参数
- TDerivedEntity
- TProperty
参数
- propertyExpression
- Expression<Func<TDerivedEntity,TProperty>>
一个 lambda 表达式,表示要 (blog => blog.Url
) 配置的属性。
返回
同一生成器实例,以便可以链接多个配置调用。
适用于
HasParameter<TProperty>(Expression<Func<TEntity,TProperty>>)
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
如果不存在映射到给定属性的参数,则配置新参数。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasParameter<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> propertyExpression);
override this.HasParameter : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasParameter(Of TProperty) (propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As StoredProcedureBuilder(Of TEntity)
类型参数
- TProperty
参数
- propertyExpression
- Expression<Func<TEntity,TProperty>>
一个 lambda 表达式,表示要 (blog => blog.Url
) 配置的属性。
返回
同一生成器实例,以便可以链接多个配置调用。
适用于
HasParameter<TProperty>(Expression<Func<TEntity,TProperty>>, Action<StoredProcedureParameterBuilder>)
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
- Source:
- StoredProcedureBuilder%60.cs
如果不存在映射到给定属性的参数,则配置新参数。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasParameter<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> propertyExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureParameterBuilder> buildAction);
override this.HasParameter : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureParameterBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasParameter(Of TProperty) (propertyExpression As Expression(Of Func(Of TEntity, TProperty)), buildAction As Action(Of StoredProcedureParameterBuilder)) As StoredProcedureBuilder(Of TEntity)
类型参数
- TProperty
参数
- propertyExpression
- Expression<Func<TEntity,TProperty>>
一个 lambda 表达式,表示要 (blog => blog.Url
) 配置的属性。
- buildAction
- Action<StoredProcedureParameterBuilder>
执行参数配置的操作。
返回
同一生成器实例,以便可以链接多个配置调用。