Share via


RelationalEntityTypeBuilderExtensions.ToFunction 方法

定義

多載

ToFunction(EntityTypeBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<OwnedNavigationTableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(IConventionEntityTypeBuilder, String, Boolean)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(IConventionEntityTypeBuilder, MethodInfo, Boolean)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(OwnedNavigationBuilder, String)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(OwnedNavigationBuilder, String, Action<OwnedNavigationTableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(OwnedNavigationBuilder, MethodInfo)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(EntityTypeBuilder, String)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(EntityTypeBuilder, MethodInfo)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(EntityTypeBuilder, String, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(OwnedNavigationBuilder, String, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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

設定以關係資料庫為目標時,實體類型所對應的函式。

ToFunction(EntityTypeBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

entityTypeBuilder
EntityTypeBuilder

正在設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

ownedNavigationBuilder
OwnedNavigationBuilder

正在設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊,請參閱 模型化實體類型和關聯性

適用於

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<OwnedNavigationTableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

ownedNavigationBuilder
OwnedNavigationBuilder

正在設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(IConventionEntityTypeBuilder, String, Boolean)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

entityTypeBuilder
IConventionEntityTypeBuilder

正在設定之實體類型的產生器。

name
String

函數的名稱。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(IConventionEntityTypeBuilder, MethodInfo, Boolean)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

entityTypeBuilder
IConventionEntityTypeBuilder

正在設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(OwnedNavigationBuilder, String)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

ownedNavigationBuilder
OwnedNavigationBuilder

正在設定之實體類型的產生器。

name
String

函數的名稱。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(OwnedNavigationBuilder, String, Action<OwnedNavigationTableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

ownedNavigationBuilder
OwnedNavigationBuilder

正在設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(OwnedNavigationBuilder, MethodInfo)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

ownedNavigationBuilder
OwnedNavigationBuilder

正在設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(EntityTypeBuilder, String)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

entityTypeBuilder
EntityTypeBuilder

正在設定之實體類型的產生器。

name
String

函數的名稱。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(EntityTypeBuilder, MethodInfo)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

entityTypeBuilder
EntityTypeBuilder

正在設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(EntityTypeBuilder, String, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

entityTypeBuilder
EntityTypeBuilder

要設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

ToFunction(OwnedNavigationBuilder, String, Action<TableValuedFunctionBuilder>)

設定以關係資料庫為目標時,實體類型所對應的函式。

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

參數

ownedNavigationBuilder
OwnedNavigationBuilder

要設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<TableValuedFunctionBuilder<TEntity>>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

name
String

函數的名稱。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<TableValuedFunctionBuilder<TEntity>>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity

正在設定的實體型別。

參數

entityTypeBuilder
EntityTypeBuilder<TEntity>

要設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

name
String

函數的名稱。

傳回

函式組態產生器。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity,TDependentEntity>>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TOwnerEntity

擁有關聯性的實體類型。

TDependentEntity

關聯性的相依實體類型。

參數

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

要設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<OwnedNavigationTableValuedFunctionBuilder<TOwnerEntity,TDependentEntity>>

函式組態動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TOwnerEntity
TRelatedEntity

參數

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

要設定之實體類型的產生器。

function
MethodInfo

表示函式的方法。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊,請參閱 模型化實體類型和關聯 性。

適用於

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

設定以關係資料庫為目標時,實體類型所對應的函式。

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)

類型參數

TEntity TOwnerEntity
TRelatedEntity

此關聯性的目標實體類型。

參數

referenceOwnershipBuilder
OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>

要設定之實體類型的產生器。

name
String

函數的名稱。

configureFunction
Action<TableValuedFunctionBuilder>

函式組態動作。

傳回

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

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊,請參閱 模型化實體類型和關聯 性。

適用於