다음을 통해 공유


IModelConversionExtension 인터페이스

Exposes methods for converting a custom file format to and from the .edmx file format that is readable by the Entity Data Model Designer.

네임스페이스: Microsoft.Data.Entity.Design.Extensibility
어셈블리: microsoft.data.entity.design.extensibility.dll의 Microsoft.Data.Entity.Design.Extensibility

사용법

구문

‘선언
Public Interface IModelConversionExtension
public interface IModelConversionExtension
public interface class IModelConversionExtension
public interface IModelConversionExtension
public interface IModelConversionExtension

설명

The IModelConversionExtension interface exposes methods for extending the functionality of the Entity Data Model Designer (Entity Designer). Specifically, the OnAfterFileLoaded and OnBeforeFileSaved methods allow you to load and save custom file formats with the Entity Designer. The Microsoft.Data.Entity.Design.Extensibility.ModelFileExtensionAttribute is used to annotate classes that implement the Microsoft.Data.Entity.Design.Extensibility.IModelConversionExtension interface. The Microsoft.Data.Entity.Design.Extensibility.ModelFileExtensionAttribute constructor accepts a string parameter that specifies the file extension for custom files that can be loaded and saved by the Entity Designer.

The scope of these methods is limited to converting between custom file formats and the .edmx file format. To customize an .edmx file before it is displayed in the Entity Designer or before it is saved, see Microsoft.Data.Entity.Design.Extensibility.IModelTransformExtension.

Ee534380.note(ko-kr,VS.100).gif참고:
An implementation of IModelConversionExtension can work with only one type of custom file. Separate implementations are necessary to transform multiple custom file formats. A given installation of Visual Studio can only have one model conversion extension per custom file type.

For more information about extending the functionality of the ADO.NET Entity Data Model Tools, see Extending the Entity Data Model Tools and ADO.NET Entity Data Model Designer Extension Starter Kit.

플랫폼

개발 플랫폼

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 및 Windows 2000

대상 플랫폼

Change History

참고 항목

참조

IModelConversionExtension 멤버
Microsoft.Data.Entity.Design.Extensibility 네임스페이스

기타 리소스

.edmx File Overview
Developing Visual Studio Extensions
Visual Studio Extensibility Developer Center