EdmxWriter.WriteEdmx Method

 

Writes the Entity Data Model.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticWriteEdmx(DbContext, XmlWriter)

Uses Code First with the given context and writes the resulting Entity Data Model to the given writer in EDMX form. This method can only be used with context instances that use Code First and create the model internally. The method cannot be used for contexts created using Database First or Model First, for contexts created using a pre-existing ObjectContext, or for contexts created using a pre-existing DbCompiledModel.

System_CAPS_pubmethodSystem_CAPS_staticWriteEdmx(DbModel, XmlWriter)

Writes the Entity Data Model represented by the given DbModel to the given writer in EDMX form.


EdmxWriter.WriteEdmx Method (DbContext, XmlWriter)

Uses Code First with the given context and writes the resulting Entity Data Model to the given writer in EDMX form. This method can only be used with context instances that use Code First and create the model internally. The method cannot be used for contexts created using Database First or Model First, for contexts created using a pre-existing ObjectContext, or for contexts created using a pre-existing DbCompiledModel.

public static void WriteEdmx(
	DbContext context,
	XmlWriter writer
)

Parameters

context
Type: System.Data.Entity.DbContext

The context.

writer
Type: System.Xml.XmlWriter

The writer.


EdmxWriter.WriteEdmx Method (DbModel, XmlWriter)

Writes the Entity Data Model represented by the given DbModel to the given writer in EDMX form.

public static void WriteEdmx(
	DbModel model,
	XmlWriter writer
)

Parameters

model
Type: System.Data.Entity.Infrastructure.DbModel

An object representing the EDM.

writer
Type: System.Xml.XmlWriter

The writer.