src/Misc/EFTools/EntityDesignDataSourceWizardExtension/EdmDataSourceWizardEngine.cs
/// <summary>
///     Return true if the engine could generate a new item based on a specified item.
/// </summary>
/// <param name="referencedItem"></param>
/// <returns></returns>
Return true if the engine could generate a new item based on a specified item.
Return true if the engine could generate a new item based on a specified item .
bool IDataSourceWizardEngine.CanConfigureNew(ProjectItem referencedItem)
        {
            if (referencedItem == null)
            {
                return true;
            }
            else if (!String.IsNullOrEmpty(referencedItem.Name)
                     && (referencedItem.Name.EndsWith(SqlServerCompactFileExtension, StringComparison.OrdinalIgnoreCase)
                         || referencedItem.Name.EndsWith(LocalDbFileExtension, StringComparison.OrdinalIgnoreCase))
                )
            {
                return true;
            }
            return false;
        }
bool IDataSourceWizardEngine . CanConfigureNew ( ProjectItem referencedItem ) { if ( referencedItem == null ) { return true ; } else if ( ! String . IsNullOrEmpty ( referencedItem . Name ) && ( referencedItem . Name . EndsWith ( SqlServerCompactFileExtension , StringComparison . OrdinalIgnoreCase ) || referencedItem . Name . EndsWith ( LocalDbFileExtension , StringComparison . OrdinalIgnoreCase ) ) ) { return true ; } return false ; }
Return true if the engine could generate a new item based on a specified item.
Return true if the engine could generate a new item based on a specified item .
// Currently EDM  supports being generated from local database file and service-based database file.
None
referencedItem
ProjectItem
None