共用方式為


ConventionTypeConfiguration.ToTable 方法 (String, String)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

設定此實體類型所對應的資料表名稱。

命名空間:  System.Data.Entity.ModelConfiguration.Configuration
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Function ToTable ( _
    tableName As String, _
    schemaName As String _
) As ConventionTypeConfiguration
'用途
Dim instance As ConventionTypeConfiguration 
Dim tableName As String 
Dim schemaName As String 
Dim returnValue As ConventionTypeConfiguration 

returnValue = instance.ToTable(tableName, _
    schemaName)
public ConventionTypeConfiguration ToTable(
    string tableName,
    string schemaName
)
public:
ConventionTypeConfiguration^ ToTable(
    String^ tableName, 
    String^ schemaName
)
member ToTable : 
        tableName:string * 
        schemaName:string -> ConventionTypeConfiguration
public function ToTable(
    tableName : String, 
    schemaName : String
) : ConventionTypeConfiguration

參數

  • schemaName
    類型:System.String
    資料表的資料庫結構描述。

傳回值

類型:System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
可以鏈結多個呼叫的相同 ConventionTypeConfiguration 執行個體。

備註

一旦設定後,呼叫它會沒有作用。

請參閱

參考

ConventionTypeConfiguration 類別

ToTable 多載

System.Data.Entity.ModelConfiguration.Configuration 命名空間