internal static ReadOnlyCollection <IEntityStateEntry> GetAllStateEntries(
            PropagatorResult source,
            UpdateTranslator translator,
            EntitySet sourceTable)
        {
            SourceInterpreter sourceInterpreter = new SourceInterpreter(translator, sourceTable);

            sourceInterpreter.RetrieveResultMarkup(source);
            return(new ReadOnlyCollection <IEntityStateEntry>((IList <IEntityStateEntry>)sourceInterpreter.m_stateEntries));
        }
Пример #2
0
        // <summary>
        // Finds all markup associated with the given source.
        // </summary>
        // <param name="source"> Source expression. Must not be null. </param>
        // <param name="translator"> Translator containing session information. </param>
        // <param name="sourceTable"> Table from which the exception was thrown (must not be null). </param>
        // <returns> Markup. </returns>
        internal static ReadOnlyCollection<IEntityStateEntry> GetAllStateEntries(
            PropagatorResult source, UpdateTranslator translator,
            EntitySet sourceTable)
        {
            DebugCheck.NotNull(source);
            DebugCheck.NotNull(translator);
            DebugCheck.NotNull(sourceTable);

            var interpreter = new SourceInterpreter(translator, sourceTable);
            interpreter.RetrieveResultMarkup(source);

            return new ReadOnlyCollection<IEntityStateEntry>(interpreter.m_stateEntries);
        }
        /// <summary>
        ///     Finds all markup associated with the given source.
        /// </summary>
        /// <param name="source"> Source expression. Must not be null. </param>
        /// <param name="translator"> Translator containing session information. </param>
        /// <param name="sourceTable"> Table from which the exception was thrown (must not be null). </param>
        /// <returns> Markup. </returns>
        internal static ReadOnlyCollection <IEntityStateEntry> GetAllStateEntries(
            PropagatorResult source, UpdateTranslator translator,
            EntitySet sourceTable)
        {
            DebugCheck.NotNull(source);
            DebugCheck.NotNull(translator);
            DebugCheck.NotNull(sourceTable);

            var interpreter = new SourceInterpreter(translator, sourceTable);

            interpreter.RetrieveResultMarkup(source);

            return(new ReadOnlyCollection <IEntityStateEntry>(interpreter.m_stateEntries));
        }