src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignEditorFactory.cs
/// <summary>
///     Set properties such as "Custom Tool" and "Item Type"
/// </summary>
Set properties such as "Custom Tool" and "Item Type"
Set properties such as " Custom Tool " and " Item Type "
internal static void SetProjectItemProperties(ProjectItem projectItem, VisualStudioProjectSystem applicationType)
        {
            EdmUtils.ToggleEdmxItemCustomToolProperty(projectItem, true);
            if (applicationType != VisualStudioProjectSystem.Website)
            {
                var prop = projectItem.Properties.Item(ModelObjectItemWizard.ItemTypePropertyName);
                if (prop != null)
                {
                    prop.Value = ModelObjectItemWizard.EntityDeployBuildActionName;
                }
            }
        }
internal static void SetProjectItemProperties ( ProjectItem projectItem , VisualStudioProjectSystem applicationType ) { EdmUtils . ToggleEdmxItemCustomToolProperty ( projectItem , true ) ; if ( applicationType != VisualStudioProjectSystem . Website ) { var prop = projectItem . Properties . Item ( ModelObjectItemWizard . ItemTypePropertyName ) ; if ( prop != null ) { prop . Value = ModelObjectItemWizard . EntityDeployBuildActionName ; } } }
Set properties such as "Custom Tool" and "Item Type"
Set properties such as " Custom Tool " and " Item Type "
// set the CustomTool property for the SingleFileGenerator // set the ItemType property to "EntityDeploy".  This is the "build action" of the item.
projectItem
ProjectItem
applicationType
VisualStudioProjectSystem