src/Misc/EFTools/EntityDesign/VisualStudio/Package/ConnectionManager.cs
// <summary>
//     Construct a connection string and add it to the hash, pushing the update to the .config file
// </summary>
Construct a connection string and add it to the hash, pushing the update to the .config file
Construct a connection string and add it to the hash pushing the update to the . config file
internal void AddConnectionString(Project project, VisualStudioProjectSystem applicationType, ICollection<string> metadataFiles, string connectionStringName,
            string configFileConnectionStringValue, string providerInvariantName)
        {
            if (null == project)
            {
                throw new ArgumentNullException("project");
            }
            if (project.UniqueName.Equals(Constants.vsMiscFilesProjectUniqueName, StringComparison.Ordinal))
            {
                return;
            }
            if (String.IsNullOrEmpty(connectionStringName))
            {
                throw new ArgumentNullException("connectionStringName");
            }
            if (String.IsNullOrEmpty(configFileConnectionStringValue))
            {
                throw new ArgumentNullException("configFileConnectionStringValue");
            }
            var newConfigFileConnString = CreateEntityConnectionString(
                project,
                applicationType,
                metadataFiles,
                configFileConnectionStringValue,
                providerInvariantName);
            AddConnectionString(project, connectionStringName, newConfigFileConnString);
        }
internal void AddConnectionString ( Project project , VisualStudioProjectSystem applicationType , ICollection < string > metadataFiles , string connectionStringName , string configFileConnectionStringValue , string providerInvariantName ) { if ( null == project ) { throw new ArgumentNullException ( " " ) ; } if ( project . UniqueName . Equals ( Constants . vsMiscFilesProjectUniqueName , StringComparison . Ordinal ) ) { return ; } if ( String . IsNullOrEmpty ( connectionStringName ) ) { throw new ArgumentNullException ( " " ) ; } if ( String . IsNullOrEmpty ( configFileConnectionStringValue ) ) { throw new ArgumentNullException ( " " ) ; } var newConfigFileConnString = CreateEntityConnectionString ( project , applicationType , metadataFiles , configFileConnectionStringValue , providerInvariantName ) ; AddConnectionString ( project , connectionStringName , newConfigFileConnString ) ; }
Construct a connection string and add it to the hash, pushing the update to the .config file
Construct a connection string and add it to the hash pushing the update to the . config file
// add the connection string to the hash and update the .config file
project
Project
applicationType
VisualStudioProjectSystem
metadataFiles
ICollection<string>
connectionStringName
string
configFileConnectionStringValue
string
providerInvariantName
string