Поделиться через


ITable Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Used for weakly typed query scenarios.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
Public Interface ITable _
    Inherits IQueryable, IEnumerable
public interface ITable : IQueryable, IEnumerable

The ITable type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone Context Gets the DataContext that has been used to retrieve this ITable.
Public propertySupported by Silverlight for Windows Phone ElementType Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed. (Inherited from IQueryable.)
Public propertySupported by Silverlight for Windows Phone Expression Gets the expression tree that is associated with the instance of IQueryable. (Inherited from IQueryable.)
Public propertySupported by Silverlight for Windows Phone IsReadOnly Indicates if the type of the entities contained in this ITable instance has a primary key.
Public propertySupported by Silverlight for Windows Phone Provider Gets the query provider that is associated with this data source. (Inherited from IQueryable.)

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Attach(Object) Attaches an entity to the DataContext in an unmodified state.
Public methodSupported by Silverlight for Windows Phone Attach(Object, Boolean) Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Public methodSupported by Silverlight for Windows Phone Attach(Object, Object) Attaches an entity to the DataContext in either a modified or unmodified state by specifying both the entity and its original state.
Public methodSupported by Silverlight for Windows Phone AttachAll(IEnumerable) Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Public methodSupported by Silverlight for Windows Phone AttachAll(IEnumerable, Boolean) Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Public methodSupported by Silverlight for Windows Phone DeleteAllOnSubmit Puts all entities from the collection into a pending delete state.
Public methodSupported by Silverlight for Windows Phone DeleteOnSubmit Puts an entity from this table into a pending delete state.
Public methodSupported by Silverlight for Windows Phone GetEnumerator Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodSupported by Silverlight for Windows Phone GetModifiedMembers Returns an array of modified members that contain their current and original values.
Public methodSupported by Silverlight for Windows Phone GetOriginalEntityState Retrieves original values.
Public methodSupported by Silverlight for Windows Phone InsertAllOnSubmit Adds all entities of a collection to the DataContext in a pending insert state.
Public methodSupported by Silverlight for Windows Phone InsertOnSubmit Adds an entity in a pending insert state to this table.

Top

Extension Methods

  Name Description
Public Extension MethodSupported by Silverlight for Windows Phone AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows Phone Cast<TResult>() Overloaded. Converts the elements of an IQueryable to the specified type. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows Phone Cast<TResult>() Overloaded. Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows Phone OfType<TResult>() Overloaded. Filters the elements of an IQueryable based on a specified type. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows Phone OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

Top

Remarks

For more information about methods, see Table<TEntity>.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference