IModelTransformExtension::OnBeforeModelSaved Method
Defines functionality for extending the process by which an .edmx file is saved by the Entity Data Model Designer.
Assembly: Microsoft.Data.Entity.Design.Extensibility (in Microsoft.Data.Entity.Design.Extensibility.dll)
Parameters
- context
- Type: Microsoft.Data.Entity.Design.Extensibility::ModelTransformExtensionContext
Provides file and Visual Studio project information.
In a Visual Studio extension, the OnBeforeModelSaved method is used to extend the functionality of the Entity Data Model Designer (Entity Designer). Specifically, the OnBeforeModelSaved() method customizes an .edmx file before it is saved.
Note: |
|---|
When building a Visual Studio extension that also implements the IModelConversionExtension::OnBeforeFileSaved method, the OnBeforeModelSaved method will be called before the IModelConversionExtension::OnBeforeFileSaved method. |
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Note: