RelationalCollectionOwnershipBuilderExtensions.ToTable 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
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)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
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)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
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)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
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
檢視或資料表的架構。
傳回
相同的產生器實例,以便鏈結多個呼叫。