RelationalEntityTypeBuilderExtensions.ToFunction Method

Definition

Overloads

ToFunction(EntityTypeBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<OwnedNavigationTableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(IConventionEntityTypeBuilder, String, Boolean)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(IConventionEntityTypeBuilder, MethodInfo, Boolean)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, String, Action<OwnedNavigationTableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableValuedFunctionBuilder<TEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo, Action<TableValuedFunctionBuilder<TEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, MethodInfo, Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity, TDependentEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity, TDependentEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToFunction (entityTypeBuilder As EntityTypeBuilder, function As MethodInfo, configureFunction As Action(Of TableValuedFunctionBuilder)) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToFunction (ownedNavigationBuilder As OwnedNavigationBuilder, function As MethodInfo, configureFunction As Action(Of TableValuedFunctionBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information.

Applies to

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<OwnedNavigationTableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder> configureFunction);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToFunction (ownedNavigationBuilder As OwnedNavigationBuilder, function As MethodInfo, configureFunction As Action(Of OwnedNavigationTableValuedFunctionBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(IConventionEntityTypeBuilder, String, Boolean)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string name, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, string? name, bool fromDataAnnotation = false);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToFunction (entityTypeBuilder As IConventionEntityTypeBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parameters

entityTypeBuilder
IConventionEntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the function.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(IConventionEntityTypeBuilder, MethodInfo, Boolean)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, System.Reflection.MethodInfo? function, bool fromDataAnnotation = false);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * System.Reflection.MethodInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
<Extension()>
Public Function ToFunction (entityTypeBuilder As IConventionEntityTypeBuilder, function As MethodInfo, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parameters

entityTypeBuilder
IConventionEntityTypeBuilder

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(OwnedNavigationBuilder, String)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string? name);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToFunction (ownedNavigationBuilder As OwnedNavigationBuilder, name As String) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(OwnedNavigationBuilder, String, Action<OwnedNavigationTableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder> configureFunction);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToFunction (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, configureFunction As Action(Of OwnedNavigationTableValuedFunctionBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(OwnedNavigationBuilder, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, System.Reflection.MethodInfo? function);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToFunction (ownedNavigationBuilder As OwnedNavigationBuilder, function As MethodInfo) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(EntityTypeBuilder, String)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string? name);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToFunction (entityTypeBuilder As EntityTypeBuilder, name As String) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(EntityTypeBuilder, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, System.Reflection.MethodInfo? function);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToFunction (entityTypeBuilder As EntityTypeBuilder, function As MethodInfo) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(EntityTypeBuilder, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function ToFunction (entityTypeBuilder As EntityTypeBuilder, name As String, configureFunction As Action(Of TableValuedFunctionBuilder)) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction(OwnedNavigationBuilder, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ToFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction);
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function ToFunction (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, configureFunction As Action(Of TableValuedFunctionBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information.

Applies to

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableValuedFunctionBuilder<TEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder<TEntity>> configureFunction) where TEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, configureFunction As Action(Of TableValuedFunctionBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<TableValuedFunctionBuilder<TEntity>>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction) where TEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, configureFunction As Action(Of TableValuedFunctionBuilder)) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information.

Applies to

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction) where TEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), function As MethodInfo, configureFunction As Action(Of TableValuedFunctionBuilder)) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information.

Applies to

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name) where TEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string? name) where TEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo, Action<TableValuedFunctionBuilder<TEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder<TEntity>> configureFunction) where TEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), function As MethodInfo, configureFunction As Action(Of TableValuedFunctionBuilder(Of TEntity))) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<TableValuedFunctionBuilder<TEntity>>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToFunction<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, System.Reflection.MethodInfo? function) where TEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), function As MethodInfo) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToFunction<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, System.Reflection.MethodInfo? function) where TOwnerEntity : class where TDependentEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToFunction(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), function As MethodInfo) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToFunction<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string? name) where TOwnerEntity : class where TDependentEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToFunction(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

The builder for the entity type being configured.

name
String

The name of the function.

Returns

The function configuration builder.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, MethodInfo, Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity, TDependentEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToFunction<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity,TDependentEntity>> configureFunction) where TOwnerEntity : class where TDependentEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToFunction(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), function As MethodInfo, configureFunction As Action(Of OwnedNavigationTableValuedFunctionBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity,TDependentEntity>>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity, TDependentEntity>>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ToFunction<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity,TDependentEntity>> configureFunction) where TOwnerEntity : class where TDependentEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableValuedFunctionBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function ToFunction(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, configureFunction As Action(Of OwnedNavigationTableValuedFunctionBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity,TDependentEntity>>

The function configuration action.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToFunction<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, System.Reflection.MethodInfo function, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction) where TOwnerEntity : class where TRelatedEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToFunction(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), function As MethodInfo, configureFunction As Action(Of TableValuedFunctionBuilder)) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Type Parameters

TOwnerEntity
TRelatedEntity

Parameters

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

The builder for the entity type being configured.

function
MethodInfo

The method representing the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information.

Applies to

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> ToFunction<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction) where TEntity : class where TRelatedEntity : class;
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> ToFunction<TOwnerEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity> referenceOwnershipBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> configureFunction) where TOwnerEntity : class where TRelatedEntity : class;
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
static member ToFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TableValuedFunctionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'RelatedEntity (requires 'OwnerEntity : null and 'RelatedEntity : null)> (requires 'OwnerEntity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToFunction(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TEntity, TRelatedEntity), name As String, configureFunction As Action(Of TableValuedFunctionBuilder)) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
<Extension()>
Public Function ToFunction(Of TOwnerEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity), name As String, configureFunction As Action(Of TableValuedFunctionBuilder)) As OwnedNavigationBuilder(Of TOwnerEntity, TRelatedEntity)

Type Parameters

TEntity TOwnerEntity
TRelatedEntity

The entity type that this relationship targets.

Parameters

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

The builder for the entity type being configured.

name
String

The name of the function.

configureFunction
Action<TableValuedFunctionBuilder>

The function configuration action.

Returns

OwnedNavigationBuilder<TEntity,TRelatedEntity>
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

The same builder instance so that multiple calls can be chained.

Remarks

See Modeling entity types and relationships for more information.

Applies to