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