src/Misc/EFTools/EntityDesignDataSourceWizardExtension/EdmDataSourceWizardEngine.cs
/// <summary>
///     Return true if the wizard engine is supported for the project.
/// </summary>
Return true if the wizard engine is supported for the project.
Return true if the wizard engine is supported for the project .
bool IDataSourceWizardEngine.CanWorkInProject(Project project)
        {
            if (project != null)
            {
                var projectKind = VsUtils.GetProjectKind(project);
                if (projectKind == VsUtils.ProjectKind.CSharp
                    || projectKind == VsUtils.ProjectKind.Web
                    || projectKind == VsUtils.ProjectKind.VB)
                {
                    using (var serviceProvider =
                        new ServiceProvider((IOleServiceProvider)project.DTE))
                    {
                        return VsUtils
                            .EntityFrameworkSupportedInProject(project, serviceProvider, false);
                    }
                }
            }
            return false;
        }
bool IDataSourceWizardEngine . CanWorkInProject ( Project project ) { if ( project != null ) { var projectKind = VsUtils . GetProjectKind ( project ) ; if ( projectKind == VsUtils . ProjectKind . CSharp || projectKind == VsUtils . ProjectKind . Web || projectKind == VsUtils . ProjectKind . VB ) { using ( var serviceProvider = new ServiceProvider ( ( IOleServiceProvider ) project . DTE ) ) { return VsUtils . EntityFrameworkSupportedInProject ( project , serviceProvider , false ) ; } } } return false ; }
Return true if the wizard engine is supported for the project.
Return true if the wizard engine is supported for the project .
// Currently, only VB, C# and Web projects are supported.
project
Project