using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace System.Data.Linq { /// /// The result of executing a query. /// public interface IExecuteResult : IDisposable { /// /// The return value or result of the executed query. This object has the same type as the /// query expression's Type property. /// object ReturnValue { get; } /// /// Retrieves the nth output parameter. This method is normally used when the query is a mapped /// function with output parameters. /// /// /// object GetParameterValue(int parameterIndex); } /// /// Interface providing access to a function return value. /// public interface IFunctionResult { /// /// The value. /// object ReturnValue { get; } } /// /// An interface for representing the result of a mapped function with a single return sequence. /// [SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="tadam: Meant to represent a database table which is delayed loaded and doesn't provide collection semantics.")] public interface ISingleResult : IEnumerable, IFunctionResult, IDisposable { } /// /// An interface for representing results of mapped functions or queries with variable return sequences. /// public interface IMultipleResults : IFunctionResult, IDisposable { /// /// Retrieves the next result as a sequence of Type 'TElement'. /// /// /// [SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "tadam: Generic parameters are required for strong-typing of the return type.")] IEnumerable GetResult(); } }