Table of Contents

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

IConventionDbFunctionParameterBuilder

Exceptions

InvalidOperationException

If the function has been removed from the model.

Function

The function to which this parameter belongs.

IConventionDbFunction Function { get; }

Property Value

IConventionDbFunction

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 string

The store type of the parameter.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

string

SetTypeMapping(RelationalTypeMapping?, bool)

Sets the type mapping of the parameter.

RelationalTypeMapping? SetTypeMapping(RelationalTypeMapping? typeMapping, bool fromDataAnnotation = false)

Parameters

typeMapping RelationalTypeMapping

The type mapping of the parameter in the database.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

RelationalTypeMapping