src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Determines whether a modern (or non-legacy) provider is available for the
//     specified invariant name
// </summary>
Determines whether a modern (or non-legacy) provider is available for the
specified invariant name
Determines whether a modern ( or non - legacy ) provider is available for the specified invariant name
public static bool IsModernProviderAvailable(
            string providerInvariantName,
            Project project,
            IServiceProvider serviceProvider)
        {
            Debug.Assert(!string.IsNullOrWhiteSpace(providerInvariantName), "providerInvariantName is null or empty.");
            return GetKnownModernProvider(providerInvariantName) != null
                   || GetModernProviderTypeNameFromProject(providerInvariantName, project, serviceProvider) != null;
        }
public static bool IsModernProviderAvailable ( string providerInvariantName , Project project , IServiceProvider serviceProvider ) { Debug . Assert ( ! string . IsNullOrWhiteSpace ( providerInvariantName ) , " " ) ; return GetKnownModernProvider ( providerInvariantName ) != null || GetModernProviderTypeNameFromProject ( providerInvariantName , project , serviceProvider ) != null ; }
Determines whether a modern (or non-legacy) provider is available for the
specified invariant name
Determines whether a modern ( or non - legacy ) provider is available for the specified invariant name
providerInvariantName
string
project
Project
serviceProvider
IServiceProvider