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
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
stringThe name of the result column.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
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
stringThe name of the result column.
fromDataAnnotation
boolIndicates 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.