共用方式為


EdmxWriter.WriteEdmx 方法 (DbModel, XmlWriter)

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

將給定 DbModel 所表示的實體資料模型寫入 EDMX 表單中的給定寫入器。

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

語法

'宣告
Public Shared Sub WriteEdmx ( _
    model As DbModel, _
    writer As XmlWriter _
)
'用途
Dim model As DbModel 
Dim writer As XmlWriter 

EdmxWriter.WriteEdmx(model, writer)
public static void WriteEdmx(
    DbModel model,
    XmlWriter writer
)
public:
static void WriteEdmx(
    DbModel^ model, 
    XmlWriter^ writer
)
static member WriteEdmx : 
        model:DbModel * 
        writer:XmlWriter -> unit
public static function WriteEdmx(
    model : DbModel, 
    writer : XmlWriter
)

參數

請參閱

參考

EdmxWriter 類別

WriteEdmx 多載

System.Data.Entity.Infrastructure 命名空間