src/EntityFramework.SqlServer/SqlProviderUtilities.cs
// <summary>
// Requires that the given connection is of type  T.
// Returns the connection or throws.
// </summary>
Requires that the given connection is of type  T.
Returns the connection or throws.
Requires that the given connection is of type T . Returns the connection or throws .
internal static SqlConnection GetRequiredSqlConnection(DbConnection connection)
        {
            var result = connection as SqlConnection;
            if (null == result)
            {
                throw new ArgumentException(Strings.Mapping_Provider_WrongConnectionType(typeof(SqlConnection)));
            }
            return result;
        }
internal static SqlConnection GetRequiredSqlConnection ( DbConnection connection ) { var result = connection as SqlConnection ; if ( null == result ) { throw new ArgumentException ( Strings . Mapping_Provider_WrongConnectionType ( typeof ( SqlConnection ) ) ) ; } return result ; }
Requires that the given connection is of type  T.
Returns the connection or throws.
Requires that the given connection is of type T . Returns the connection or throws .
connection
DbConnection