ITable Интерфейс
Определение
Используется для слабо типизированных сценариев запросов.Used for weakly typed query scenarios.
public interface class ITable : System::Collections::IEnumerable, System::Linq::IQueryable
public interface ITable : System.Collections.IEnumerable, System.Linq.IQueryable
type ITable = interface
interface IQueryable
interface IEnumerable
type ITable = interface
interface IEnumerable
interface IQueryable
Public Interface ITable
Implements IEnumerable, IQueryable
- Производный
- Реализации
Комментарии
Дополнительные сведения о методах см. в разделе Table<TEntity> .For more information about methods, see Table<TEntity>.
Свойства
Context |
Получает объект DataContext, который использовался для извлечения этого объекта ITable.Gets the DataContext that has been used to retrieve this ITable. |
ElementType |
Получает тип элементов, которые возвращаются при выполнении дерева выражения, связанного с данным экземпляром класса IQueryable.Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed. (Унаследовано от IQueryable) |
Expression |
Получает выражение, связанное с экземпляром класса IQueryable.Gets the expression tree that is associated with the instance of IQueryable. (Унаследовано от IQueryable) |
IsReadOnly |
Указывает, есть ли у типа сущностей, содержащихся в данном экземпляре ITable, первичный ключ.Indicates if the type of the entities contained in this ITable instance has a primary key. |
Provider |
Возвращает объект поставщика запросов, связанного с указанным источником данных.Gets the query provider that is associated with this data source. (Унаследовано от IQueryable) |
Методы
Attach(Object) |
Присоединяет сущность к DataContext в неизмененном состоянии.Attaches an entity to the DataContext in an unmodified state. |
Attach(Object, Boolean) |
Присоединяет все элементы коллекции к DataContext в измененном или неизмененном состоянии.Attaches all entities of a collection to the DataContext in either a modified or unmodified state. |
Attach(Object, Object) |
Присоединяет сущность к DataContext в измененном или неизмененном состоянии, указывая сущность и ее исходное состояние.Attaches an entity to the DataContext in either a modified or unmodified state by specifying both the entity and its original state. |
AttachAll(IEnumerable) |
Присоединяет все элементы коллекции к DataContext в измененном или неизмененном состоянии.Attaches all entities of a collection to the DataContext in either a modified or unmodified state. |
AttachAll(IEnumerable, Boolean) |
Присоединяет все элементы коллекции к DataContext в измененном или неизмененном состоянии.Attaches all entities of a collection to the DataContext in either a modified or unmodified state. |
DeleteAllOnSubmit(IEnumerable) |
Помещает все сущности из коллекции в состояние |
DeleteOnSubmit(Object) |
Помещает сущность из таблицы в состояние |
GetEnumerator() |
Возвращает перечислитель, который осуществляет итерацию по коллекции.Returns an enumerator that iterates through a collection. (Унаследовано от IEnumerable) |
GetModifiedMembers(Object) |
Возвращает массив измененных членов, содержащих их текущее и исходное значения.Returns an array of modified members that contain their current and original values. |
GetOriginalEntityState(Object) |
Извлекает исходные значения.Retrieves original values. |
InsertAllOnSubmit(IEnumerable) |
Добавляет все сущности коллекции DataContext в состояние |
InsertOnSubmit(Object) |
Добавляет сущность в состояние |
Методы расширения
Cast<TResult>(IEnumerable) |
Приводит элементы объекта IEnumerable к заданному типу.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Выполняет фильтрацию элементов объекта IEnumerable по заданному типу.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Позволяет осуществлять параллельный запрос.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Преобразовывает коллекцию IEnumerable в объект IQueryable.Converts an IEnumerable to an IQueryable. |
Cast<TResult>(IQueryable) |
Преобразовывает элементы объекта IQueryable в заданный тип.Converts the elements of an IQueryable to the specified type. |
OfType<TResult>(IQueryable) |
Выполняет фильтрацию элементов объекта IQueryable по заданному типу.Filters the elements of an IQueryable based on a specified type. |