OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>.HasResultColumn 方法

定义

重载

HasResultColumn(String)

为此存储过程配置结果的新列。 这用于数据库生成的列。

HasResultColumn(String, Action<StoredProcedureResultColumnBuilder>)

为此存储过程配置结果的新列。 这用于数据库生成的列。

HasResultColumn<TProperty>(Expression<Func<TDependentEntity,TProperty>>)

为此存储过程配置结果的新列。 这用于数据库生成的列。

HasResultColumn<TProperty>(Expression<Func<TDependentEntity,TProperty>>, Action<StoredProcedureResultColumnBuilder>)

为此存储过程配置结果的新列。 这用于数据库生成的列。

HasResultColumn(String)

为此存储过程配置结果的新列。 这用于数据库生成的列。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity> HasResultColumn (string propertyName);
override this.HasResultColumn : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function HasResultColumn (propertyName As String) As OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity)

参数

propertyName
String

属性名称。

返回

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

适用于

HasResultColumn(String, Action<StoredProcedureResultColumnBuilder>)

为此存储过程配置结果的新列。 这用于数据库生成的列。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity> HasResultColumn (string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> buildAction);
override this.HasResultColumn : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function HasResultColumn (propertyName As String, buildAction As Action(Of StoredProcedureResultColumnBuilder)) As OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity)

参数

propertyName
String

属性名称。

buildAction
Action<StoredProcedureResultColumnBuilder>

执行列配置的操作。

返回

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

适用于

HasResultColumn<TProperty>(Expression<Func<TDependentEntity,TProperty>>)

为此存储过程配置结果的新列。 这用于数据库生成的列。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity> HasResultColumn<TProperty> (System.Linq.Expressions.Expression<Func<TDependentEntity,TProperty>> propertyExpression);
override this.HasResultColumn : System.Linq.Expressions.Expression<Func<'DependentEntity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function HasResultColumn(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 配置的属性。

返回

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

适用于

HasResultColumn<TProperty>(Expression<Func<TDependentEntity,TProperty>>, Action<StoredProcedureResultColumnBuilder>)

为此存储过程配置结果的新列。 这用于数据库生成的列。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity> HasResultColumn<TProperty> (System.Linq.Expressions.Expression<Func<TDependentEntity,TProperty>> propertyExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> buildAction);
override this.HasResultColumn : System.Linq.Expressions.Expression<Func<'DependentEntity, 'Property>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function HasResultColumn(Of TProperty) (propertyExpression As Expression(Of Func(Of TDependentEntity, TProperty)), buildAction As Action(Of StoredProcedureResultColumnBuilder)) As OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity)

类型参数

TProperty

参数

propertyExpression
Expression<Func<TDependentEntity,TProperty>>

一个 lambda 表达式,表示要 () blog => blog.Url 配置的属性。

buildAction
Action<StoredProcedureResultColumnBuilder>

执行列配置的操作。

返回

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

适用于