共用方式為


RelationalCollectionOwnershipBuilderExtensions.ToTable 方法

定義

多載

ToTable(CollectionOwnershipBuilder, String)

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

ToTable(CollectionOwnershipBuilder, String, String)

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String)

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String, String)

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

ToTable(CollectionOwnershipBuilder, String)

來源:
RelationalCollectionOwnershipBuilderExtensions.cs

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder collectionOwnershipBuilder, string name);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
<Extension()>
Public Function ToTable (collectionOwnershipBuilder As CollectionOwnershipBuilder, name As String) As CollectionOwnershipBuilder

參數

collectionOwnershipBuilder
CollectionOwnershipBuilder

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

name
String

檢視或資料表的名稱。

傳回

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

適用於

ToTable(CollectionOwnershipBuilder, String, String)

來源:
RelationalCollectionOwnershipBuilderExtensions.cs

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder collectionOwnershipBuilder, string name, string schema);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
<Extension()>
Public Function ToTable (collectionOwnershipBuilder As CollectionOwnershipBuilder, name As String, schema As String) As CollectionOwnershipBuilder

參數

collectionOwnershipBuilder
CollectionOwnershipBuilder

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

name
String

檢視或資料表的名稱。

schema
String

檢視或資料表的架構。

傳回

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

適用於

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String)

來源:
RelationalCollectionOwnershipBuilderExtensions.cs

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> ToTable<TEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> collectionOwnershipBuilder, string name) where TEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> (requires 'Entity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TDependentEntity As Class) (collectionOwnershipBuilder As CollectionOwnershipBuilder(Of TEntity, TDependentEntity), name As String) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)

類型參數

TEntity

正在設定的實體型別。

TDependentEntity

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

參數

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TDependentEntity>

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

name
String

檢視或資料表的名稱。

傳回

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

適用於

ToTable<TEntity,TDependentEntity>(CollectionOwnershipBuilder<TEntity,TDependentEntity>, String, String)

來源:
RelationalCollectionOwnershipBuilderExtensions.cs

設定以關係資料庫為目標時,實體所對應的檢視或資料表。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> ToTable<TEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> collectionOwnershipBuilder, string name, string schema) where TEntity : class where TDependentEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)> (requires 'Entity : null and 'DependentEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TDependentEntity As Class) (collectionOwnershipBuilder As CollectionOwnershipBuilder(Of TEntity, TDependentEntity), name As String, schema As String) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)

類型參數

TEntity

正在設定的實體型別。

TDependentEntity

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

參數

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TDependentEntity>

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

name
String

檢視或資料表的名稱。

schema
String

檢視或資料表的架構。

傳回

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

適用於