Interface IConventionDbFunctionParameterBuilder
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Provides a simple API for configuring a IConventionDbFunctionParameter.
public interface IConventionDbFunctionParameterBuilder : IConventionAnnotatableBuilder
Properties
Metadata
The function parameter metadata that is being built.
IConventionDbFunctionParameter Metadata { get; }
Property Value
Methods
CanSetStoreType(string, bool)
Returns a value indicating whether the store type can be set for this property from the current configuration source.
bool CanSetStoreType(string storeType, bool fromDataAnnotation = false)
Parameters
storeType
stringThe store type of the function parameter in the database.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
CanSetTypeMapping(RelationalTypeMapping, bool)
Returns a value indicating whether RelationalTypeMapping can be set for this property from the current configuration source.
bool CanSetTypeMapping(RelationalTypeMapping typeMapping, bool fromDataAnnotation = false)
Parameters
typeMapping
RelationalTypeMappingThe type mapping to use for the function parameter.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
HasStoreType(string, bool)
Sets the store type of the function parameter in the database.
IConventionDbFunctionParameterBuilder HasStoreType(string storeType, bool fromDataAnnotation = false)
Parameters
storeType
stringThe store type of the function parameter in the database.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionDbFunctionParameterBuilder
The same builder instance if the configuration was applied; null otherwise.
HasTypeMapping(RelationalTypeMapping, bool)
Sets the RelationalTypeMapping of the function parameter.
IConventionDbFunctionParameterBuilder HasTypeMapping(RelationalTypeMapping typeMapping, bool fromDataAnnotation = false)
Parameters
typeMapping
RelationalTypeMappingThe type mapping to use for the function parameter.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionDbFunctionParameterBuilder
The same builder instance if the configuration was applied; null otherwise.