C# 클래스 System.Data.Entity.Infrastructure.EdmxWriter

Contains methods used to access the Entity Data Model created by Code First in the EDMX form. These methods are typically used for debugging when there is a need to look at the model that Code First creates internally.
파일 보기 프로젝트 열기: aspnet/EntityFramework6 1 사용 예제들

공개 메소드들

메소드 설명
WriteEdmx ( DbContext context, XmlWriter writer ) : void

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.

WriteEdmx ( System.Data.Entity.Infrastructure.DbModel model, XmlWriter writer ) : void

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

메소드 상세

WriteEdmx() 공개 정적인 메소드

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 WriteEdmx ( DbContext context, XmlWriter writer ) : void
context DbContext The context.
writer System.Xml.XmlWriter The writer.
리턴 void

WriteEdmx() 공개 정적인 메소드

Writes the Entity Data Model represented by the given DbModel to the given writer in EDMX form.
public static WriteEdmx ( System.Data.Entity.Infrastructure.DbModel model, XmlWriter writer ) : void
model System.Data.Entity.Infrastructure.DbModel An object representing the EDM.
writer System.Xml.XmlWriter The writer.
리턴 void