src/Misc/EFTools/EntityDesignDataSourceWizardExtension/LaunchModelGenWizardPage.cs
/// <summary>
///     Get template name for a given project.
///     TODO: we should be able to move this code to a common place.
/// </summary>
Get template name for a given project.
TODO: we should be able to move this code to a common place.
Get template name for a given project . TODO : we should be able to move this code to a common place .
private static string GetItemTemplateName(Project project)
        {
            var projectKind = VsUtils.GetProjectKind(project);
            if (projectKind == VsUtils.ProjectKind.CSharp)
            {
                return AdoNetEntityDataModelCSharp;
            }
            else if (projectKind == VsUtils.ProjectKind.VB)
            {
                return AdoNetEntityDataModelVB;
            }
            else if (projectKind == VsUtils.ProjectKind.Web)
            {
                if (VsUtils.IsWebSiteVBProject(project))
                {
                    return AdoNetEntityDataModelAspNetCSharp;
                }
                else if (VsUtils.IsWebSiteCSharpProject(project))
                {
                    return AdoNetEntityDataModelAspNetVB;
                }
            }
            Debug.Fail("Could not find item template name for: " + projectKind.ToString("g"));
            return string.Empty;
        }
private static string GetItemTemplateName ( Project project ) { var projectKind = VsUtils . GetProjectKind ( project ) ; if ( projectKind == VsUtils . ProjectKind . CSharp ) { return AdoNetEntityDataModelCSharp ; } else if ( projectKind == VsUtils . ProjectKind . VB ) { return AdoNetEntityDataModelVB ; } else if ( projectKind == VsUtils . ProjectKind . Web ) { if ( VsUtils . IsWebSiteVBProject ( project ) ) { return AdoNetEntityDataModelAspNetCSharp ; } else if ( VsUtils . IsWebSiteCSharpProject ( project ) ) { return AdoNetEntityDataModelAspNetVB ; } } Debug . Fail ( " " + projectKind . ToString ( " " ) ) ; return string . Empty ; }
Get template name for a given project.
Get template name for a given project .
project
Project