RelationalReferenceOwnershipBuilderExtensions.ToTable 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ToTable(ReferenceOwnershipBuilder, String) |
設定以關係資料庫為目標時,實體所對應的檢視或資料表。 |
ToTable(ReferenceOwnershipBuilder, String, String) |
設定以關係資料庫為目標時,實體所對應的檢視或資料表。 |
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String) |
設定以關係資料庫為目標時,實體所對應的檢視或資料表。 |
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String, String) |
設定以關係資料庫為目標時,實體所對應的檢視或資料表。 |
ToTable(ReferenceOwnershipBuilder, String)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder referenceOwnershipBuilder, string name);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As ReferenceOwnershipBuilder, name As String) As ReferenceOwnershipBuilder
參數
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder
正在設定之實體類型的產生器。
- name
- String
檢視或資料表的名稱。
傳回
相同的產生器實例,以便鏈結多個呼叫。
適用於
ToTable(ReferenceOwnershipBuilder, String, String)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder ToTable (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder referenceOwnershipBuilder, string name, string schema);
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
<Extension()>
Public Function ToTable (referenceOwnershipBuilder As ReferenceOwnershipBuilder, name As String, schema As String) As ReferenceOwnershipBuilder
參數
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder
正在設定之實體類型的產生器。
- name
- String
檢視或資料表的名稱。
- schema
- String
檢視或資料表的架構。
傳回
相同的產生器實例,以便鏈結多個呼叫。
適用於
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> ToTable<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name) where TEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity), name As String) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)
類型參數
- TEntity
正在設定的實體型別。
- TRelatedEntity
這個關聯性的目標實體類型。
參數
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder<TEntity,TRelatedEntity>
正在設定之實體類型的產生器。
- name
- String
檢視或資料表的名稱。
傳回
相同的產生器實例,以便鏈結多個呼叫。
適用於
ToTable<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, String, String)
設定以關係資料庫為目標時,實體所對應的檢視或資料表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> ToTable<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, string name, string schema) where TEntity : class where TRelatedEntity : class;
static member ToTable : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'Entity : null and 'RelatedEntity : null)
<Extension()>
Public Function ToTable(Of TEntity As Class, TRelatedEntity As Class) (referenceOwnershipBuilder As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity), name As String, schema As String) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)
類型參數
- TEntity
正在設定的實體型別。
- TRelatedEntity
這個關聯性的目標實體類型。
參數
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder<TEntity,TRelatedEntity>
正在設定之實體類型的產生器。
- name
- String
檢視或資料表的名稱。
- schema
- String
檢視或資料表的架構。
傳回
相同的產生器實例,以便鏈結多個呼叫。