Export (0) Print
Expand All

ITable Interface

Used for weakly typed query scenarios.

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

public interface ITable : IQueryable, IEnumerable

The ITable type exposes the following members.

  NameDescription
Public propertyContextGets the DataContext that has been used to retrieve this ITable.
Public propertyElementTypeGets 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 propertyExpressionGets the expression tree that is associated with the instance of IQueryable. (Inherited from IQueryable.)
Public propertyIsReadOnlyIndicates if the type of the entities contained in this ITable instance has a primary key.
Public propertyProviderGets the query provider that is associated with this data source. (Inherited from IQueryable.)
Top

  NameDescription
Public methodAttach(Object)Attaches an entity to the DataContext in an unmodified state.
Public methodAttach(Object, Boolean)Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Public methodAttach(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 methodAttachAll(IEnumerable)Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Public methodAttachAll(IEnumerable, Boolean)Attaches all entities of a collection to the DataContext in either a modified or unmodified state.
Public methodDeleteAllOnSubmitPuts all entities from the collection into a pending delete state.
Public methodDeleteOnSubmitPuts an entity from this table into a pending delete state.
Public methodGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodGetModifiedMembersReturns an array of modified members that contain their current and original values.
Public methodGetOriginalEntityStateRetrieves original values.
Public methodInsertAllOnSubmitAdds all entities of a collection to the DataContext in a pending insert state.
Public methodInsertOnSubmitAdds an entity in a pending insert state to this table.
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>()Overloaded. Converts the elements of an IQueryable to the specified type. (Defined by Queryable.)
Public Extension MethodCast<TResult>()Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>()Overloaded. Filters the elements of an IQueryable based on a specified type. (Defined by Queryable.)
Public Extension MethodOfType<TResult>()Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

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

.NET Framework

Supported in: 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft