Esempio n. 1
0
        internal static System.Collections.ObjectModel.ReadOnlyCollection<DbParameterReferenceExpression> GetParameters(DbCommandTree tree)
        {
            Debug.Assert(tree != null, "Ensure command tree is non-null before calling ParamterRetriever.GetParameters");

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

            ParameterRetriever retriever = new ParameterRetriever();

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