src/Misc/EntityFramework.PowerShell/ConnectionFactoryConfig/SqlServerDetector.cs
// <summary>
// Builds a specification for a default connection factory that will use SQL Express if it
// running on this machine, otherwise LocalDb.
// </summary>
// <remarks>
// If the SQL Express service is found, then SQL Express will be configured.
// Otherwise, if a particular version of LocalDB is found, then that version will be used. If
// multiple versions are found then an attempt to use the highest version will be made. If no version
// of SQL Express or LocalDB is found, then LocalDB "mssqllocaldb" (SQL Server 2014 or later) will be used.
// </remarks>
Builds a specification for a default connection factory that will use SQL Express if it
running on this machine, otherwise LocalDb.
Builds a specification for a default connection factory that will use SQL Express if it running on this machine otherwise LocalDb .
public virtual ConnectionFactorySpecification BuildConnectionFactorySpecification()
        {
            return IsSqlExpressInstalled()
                       ? new ConnectionFactorySpecification(
                             ConnectionFactorySpecification.SqlConnectionFactoryName)
                       : new ConnectionFactorySpecification(
                             ConnectionFactorySpecification.LocalDbConnectionFactoryName,
                             GetLocalDBVersionInstalled());
        }
public virtual ConnectionFactorySpecification BuildConnectionFactorySpecification ( ) { return IsSqlExpressInstalled ( ) ? new ConnectionFactorySpecification ( ConnectionFactorySpecification . SqlConnectionFactoryName ) : new ConnectionFactorySpecification ( ConnectionFactorySpecification . LocalDbConnectionFactoryName , GetLocalDBVersionInstalled ( ) ) ; }
Builds a specification for a default connection factory that will use SQL Express if it
running on this machine, otherwise LocalDb.
Builds a specification for a default connection factory that will use SQL Express if it running on this machine otherwise LocalDb .
remarks
If the SQL Express service is found, then SQL Express will be configured.
Otherwise, if a particular version of LocalDB is found, then that version will be used. If
multiple versions are found then an attempt to use the highest version will be made. If no version
of SQL Express or LocalDB is found, then LocalDB "mssqllocaldb" (SQL Server 2014 or later) will be used.
If the SQL Express service is found then SQL Express will be configured . Otherwise if a particular version of LocalDB is found then that version will be used . If multiple versions are found then an attempt to use the highest version will be made . If no version of SQL Express or LocalDB is found then LocalDB " mssqllocaldb " ( SQL Server 2014 or later ) will be used .