Table of Contents

Interface IFunctionMapping

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

Represents entity type mapping to a function.

public interface IFunctionMapping : ITableMappingBase, IAnnotatable, IReadOnlyAnnotatable
Inherited Members

Remarks

See Database functions for more information and examples.

Properties

ColumnMappings

Gets the properties mapped to columns on the target function.

IEnumerable<IFunctionColumnMapping> ColumnMappings { get; }

Property Value

IEnumerable<IFunctionColumnMapping>

DbFunction

Gets the target function.

IDbFunction DbFunction { get; }

Property Value

IDbFunction

IsDefaultFunctionMapping

Gets the value indicating whether this is the function mapping that should be used when the entity type is queried.

bool IsDefaultFunctionMapping { get; }

Property Value

bool

StoreFunction

Gets the target function.

IStoreFunction StoreFunction { get; }

Property Value

IStoreFunction

Methods

ToDebugString(MetadataDebugStringOptions, int)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

string ToDebugString(MetadataDebugStringOptions options = 0, int indent = 0)

Parameters

options MetadataDebugStringOptions

Options for generating the string.

indent int

The number of indent spaces to use before each new line.

Returns

string

A human-readable representation.