ModelObjectItemWizard Class

 

Visual Studio invokes this wizard when a new item of type "ADO.NET Entity Data Model" is added to an existing project. This wizard is registered in the .vstemplate file item template. The files added by this item template are: +- modelName.edmx | +- modelName.edmx.diagram | +- modelName.Designer.cs [or vb] => code generator output (for EF5 and Legacy ObjectContext generator) or +- ModelName.cs [or vb] - for CodeFirst

Namespace:   Microsoft.Data.Entity.Design.VisualStudio.ModelWizard
Assembly:  Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)

System.Object
  Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.ModelObjectItemWizard

[SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class ModelObjectItemWizard : IWizard

NameDescription
System_CAPS_pubmethodModelObjectItemWizard()

This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.

NameDescription
System_CAPS_pubmethodBeforeOpeningFile(ProjectItem)

This method is called before opening any item that has the OpenInEditor attribute This lets us run custom wizard logic before opening an item in the template

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodProjectFinishedGenerating(Project)

This method is called after the project has been created This lets us run custom wizard logic when a project has finished generating

System_CAPS_pubmethodProjectItemFinishedGenerating(ProjectItem)

This method is only called for item templates, not for project templates

System_CAPS_pubmethodRunFinished()

This method is called at the end of a template wizard run This lets us run custom wizard logic when the wizard has completed all tasks We set up project item dependencies here for files added by the .vstemplate

System_CAPS_pubmethodRunStarted(Object, Dictionary<String, String>, WizardRunKind, Object[])

This method is called at the beginning of a template wizard run This lets us run custom wizard logic before anything is created and is a good place, for example, to collect user input that will alter the run in some way

System_CAPS_pubmethodShouldAddProjectItem(String)

Indicates whether the specified project item should be added to the project

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.