src/Misc/EFTools/EntityDesign/VisualStudio/Package/ConnectionManager.cs
// <summary>
//     Retrieves the Guid for a particular provider
// </summary>
// <param name="invariantName">The invariant name for the provider</param>
// <param name="connectionString">The connection string being used</param>
// <returns>The associated Guid</returns>
Retrieves the Guid for a particular provider
Retrieves the Guid for a particular provider
private static Guid TranslateProviderGuid(string invariantName, string connectionString)
        {
            if (connectionString == null)
            {
                throw new ArgumentNullException("connectionString");
            }
            if (invariantName == null)
            {
                throw new ArgumentNullException("invariantName");
            }
            var providerGuid = Guid.Empty;
            var providerMapper = PackageManager.Package.GetService(typeof(IDTAdoDotNetProviderMapper)) as IDTAdoDotNetProviderMapper;
            if (providerMapper != null)
            {
                providerGuid = providerMapper.MapInvariantNameToGuid(invariantName, connectionString, false );
            }
            return providerGuid;
        }
private static Guid TranslateProviderGuid ( string invariantName , string connectionString ) { if ( connectionString == null ) { throw new ArgumentNullException ( " " ) ; } if ( invariantName == null ) { throw new ArgumentNullException ( " " ) ; } var providerGuid = Guid . Empty ; var providerMapper = PackageManager . Package . GetService ( typeof ( IDTAdoDotNetProviderMapper ) ) as IDTAdoDotNetProviderMapper ; if ( providerMapper != null ) { providerGuid = providerMapper . MapInvariantNameToGuid ( invariantName , connectionString , false ) ; } return providerGuid ; }
Retrieves the Guid for a particular provider
Retrieves the Guid for a particular provider
/*fEncryptedString*/
The associated Guid
The associated Guid
invariantName
string
The invariant name for the provider
The invariant name for the provider
connectionString
string
The connection string being used
The connection string being used