Interface IConventionDbFunctionParameter
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Represents a function parameter.
public interface IConventionDbFunctionParameter : IReadOnlyDbFunctionParameter, IReadOnlyAnnotatable, IConventionAnnotatable
- Inherited Members
Remarks
See Database functions for more information and examples.
Properties
Builder
The IConventionDbFunctionParameterBuilder for configuring this function parameter.
IConventionDbFunctionParameterBuilder Builder { get; }
Property Value
Exceptions
- InvalidOperationException
If the function has been removed from the model.
Function
The function to which this parameter belongs.
IConventionDbFunction Function { get; }
Property Value
Methods
GetConfigurationSource()
Returns the configuration source for the parameter.
ConfigurationSource GetConfigurationSource()
Returns
- ConfigurationSource
The configuration source for the parameter.
GetStoreTypeConfigurationSource()
Returns the configuration source for StoreType.
ConfigurationSource? GetStoreTypeConfigurationSource()
Returns
- ConfigurationSource?
The configuration source for StoreType.
GetTypeMappingConfigurationSource()
Returns the configuration source for TypeMapping.
ConfigurationSource? GetTypeMappingConfigurationSource()
Returns
- ConfigurationSource?
The configuration source for TypeMapping.
SetStoreType(string?, bool)
Sets the store type of the parameter.
string? SetStoreType(string? storeType, bool fromDataAnnotation = false)
Parameters
storeType
stringThe store type of the parameter.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
SetTypeMapping(RelationalTypeMapping?, bool)
Sets the type mapping of the parameter.
RelationalTypeMapping? SetTypeMapping(RelationalTypeMapping? typeMapping, bool fromDataAnnotation = false)
Parameters
typeMapping
RelationalTypeMappingThe type mapping of the parameter in the database.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.