Table of Contents

Interface IConventionStoredProcedureResultColumnBuilder

Namespace
Microsoft.EntityFrameworkCore.Metadata.Builders
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Provides a simple API for configuring a IConventionStoredProcedureResultColumn.

public interface IConventionStoredProcedureResultColumnBuilder : IConventionAnnotatableBuilder

Remarks

See Model building conventions for more information and examples.

Properties

Metadata

The stored procedure result column metadata that is being built.

IConventionStoredProcedureResultColumn Metadata { get; }

Property Value

IConventionStoredProcedureResultColumn

Methods

CanSetName(string?, bool)

Returns a value indicating whether the given result column name can be set.

bool CanSetName(string? name, bool fromDataAnnotation = false)

Parameters

name string

The name of the result column.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

bool

true if the given result column name can be set.

Remarks

See Modeling entity types and relationships for more information and examples.

HasName(string, bool)

Configures the result column name.

IConventionStoredProcedureResultColumnBuilder? HasName(string name, bool fromDataAnnotation = false)

Parameters

name string

The name of the result column.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

IConventionStoredProcedureResultColumnBuilder

The same builder instance if the configuration was applied, null otherwise.

Remarks

See Modeling entity types and relationships for more information and examples.