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
)
參數
- model
類型:System.Data.Entity.Infrastructure.DbModel
表示 EDM 的物件。
- writer
類型:System.Xml.XmlWriter
寫入器。