internal static ReadOnlyCollection<DbParameterReferenceExpression> GetParameters(DbCommandTree tree)
        {
            DebugCheck.NotNull(tree);

            var retriever = new ParameterRetriever();
            retriever.VisitCommandTree(tree);
            return new ReadOnlyCollection<DbParameterReferenceExpression>(retriever.paramMappings.Values.ToList());
        }
        internal static ReadOnlyCollection<DbParameterReferenceExpression> GetParameters(DbCommandTree tree)
        {
            Debug.Assert(tree != null, "Ensure command tree is non-null before calling ParamterRetriever.GetParameters");

            var retriever = new ParameterRetriever();
            retriever.VisitCommandTree(tree);
            return retriever.paramMappings.Values.ToList().AsReadOnly();
        }
        internal static ReadOnlyCollection <DbParameterReferenceExpression> GetParameters(
            DbCommandTree tree)
        {
            ParameterRetriever parameterRetriever = new ParameterRetriever();

            parameterRetriever.VisitCommandTree(tree);
            return(new ReadOnlyCollection <DbParameterReferenceExpression>((IList <DbParameterReferenceExpression>)parameterRetriever.paramMappings.Values.ToList <DbParameterReferenceExpression>()));
        }
        internal static ReadOnlyCollection <DbParameterReferenceExpression> GetParameters(DbCommandTree tree)
        {
            DebugCheck.NotNull(tree);

            var retriever = new ParameterRetriever();

            retriever.VisitCommandTree(tree);
            return(retriever.paramMappings.Values.ToList().AsReadOnly());
        }