StoredProcedureBuilder<TEntity>.HasResultColumn Method

Definition

Overloads

HasResultColumn(String)

Configures a new column of the result for this stored procedure. This is used for database generated columns.

HasResultColumn(String, Action<StoredProcedureResultColumnBuilder>)

Configures a new column of the result for this stored procedure. This is used for database generated columns.

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

HasResultColumn(String)

Configures a new column of the result for this stored procedure. This is used for database generated columns.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasResultColumn (string propertyName);
override this.HasResultColumn : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasResultColumn (propertyName As String) As StoredProcedureBuilder(Of TEntity)

Parameters

propertyName
String

The property name.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HasResultColumn(String, Action<StoredProcedureResultColumnBuilder>)

Configures a new column of the result for this stored procedure. This is used for database generated columns.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasResultColumn (string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> buildAction);
override this.HasResultColumn : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasResultColumn (propertyName As String, buildAction As Action(Of StoredProcedureResultColumnBuilder)) As StoredProcedureBuilder(Of TEntity)

Parameters

propertyName
String

The property name.

buildAction
Action<StoredProcedureResultColumnBuilder>

An action that performs configuration of the column.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasResultColumn<TDerivedEntity,TProperty> (System.Linq.Expressions.Expression<Func<TDerivedEntity,TProperty>> propertyExpression) where TDerivedEntity : class, TEntity;
override this.HasResultColumn : System.Linq.Expressions.Expression<Func<#'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasResultColumn(Of TDerivedEntity As {Class, TEntity}, TProperty As {Class, TEntity}) (propertyExpression As Expression(Of Func(Of TDerivedEntity, TProperty))) As StoredProcedureBuilder(Of TEntity)

Type Parameters

TDerivedEntity
TProperty

Parameters

propertyExpression
Expression<Func<TDerivedEntity,TProperty>>

A lambda expression representing the property to be configured (blog => blog.Url).

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasResultColumn<TDerivedEntity,TProperty> (System.Linq.Expressions.Expression<Func<TDerivedEntity,TProperty>> propertyExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> buildAction) where TDerivedEntity : class, TEntity;
override this.HasResultColumn : System.Linq.Expressions.Expression<Func<#'Entity, 'Property>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureResultColumnBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasResultColumn(Of TDerivedEntity As {Class, TEntity}, TProperty As {Class, TEntity}) (propertyExpression As Expression(Of Func(Of TDerivedEntity, TProperty)), buildAction As Action(Of StoredProcedureResultColumnBuilder)) As StoredProcedureBuilder(Of TEntity)

Type Parameters

TDerivedEntity
TProperty

Parameters

propertyExpression
Expression<Func<TDerivedEntity,TProperty>>

A lambda expression representing the property to be configured (blog => blog.Url).

buildAction
Action<StoredProcedureResultColumnBuilder>

An action that performs configuration of the column.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<TEntity> HasResultColumn<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> propertyExpression);
override this.HasResultColumn : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasResultColumn(Of TProperty) (propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As StoredProcedureBuilder(Of TEntity)

Type Parameters

TProperty

Parameters

propertyExpression
Expression<Func<TEntity,TProperty>>

A lambda expression representing the property to be configured (blog => blog.Url).

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

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

Configures a new column of the result for this stored procedure. This is used for database generated columns.

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

Type Parameters

TProperty

Parameters

propertyExpression
Expression<Func<TEntity,TProperty>>

A lambda expression representing the property to be configured (blog => blog.Url).

buildAction
Action<StoredProcedureResultColumnBuilder>

An action that performs configuration of the column.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to