Click or drag to resize

IEntityView Interface

General interface to access common properties of an EntityView(Of TEntity) without knowing the type of TEntity.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public interface IEntityView : IEnumerable

The IEntityView type exposes the following members.

Properties
  NameDescription
Public propertyAllowEdit
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
Public propertyAllowNew
Gets/sets whether you can add items to the list using AddNew.
Public propertyAllowRemove
Gets / sets whether you can update items in the list.
Public propertyCount
Gets the count of the view.
Public propertyDataChangeAction
Gets or sets the data change action which specifies what to do when the data in the related collection of an entity view changes. A change in data can be: entity added or changed. If an entity is removed from the underlying collection, the entity is simply removed from the entity view, as the view doesn't contain any data by itself.
Public propertyFilter
Gets or sets the filter to use for this entity view.
Public propertyItem
Gets the IEntity at the specified index in the view
Public propertyRelatedCollection
Gets the related collection set for this view.
Public propertySorter
Gets or sets the sorter for this entity view. Setting this property will re-sort the view and will reset the view in databinding scenario's.
Top
Methods
  NameDescription
Public methodContains
Determines whether this entity view contains the entity passed in. This method returns false if the entity is outside the filter, but in the related entity collection, as it's then not contained in the entity view.
Public methodCreateProjection(ListIEntityPropertyProjector, IEntityCollection)
Projects the data in the view onto a new set, stored in an entity collection using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, IEntityDataProjector)
Projects the data in the view onto a new set, stored in a collection using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, DataTable)
Projects the data in the view onto a new set, stored in a datatable using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, IEntityCollection, Boolean)
Projects the data in the view onto a new set, stored in an entity collection using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, IEntityDataProjector, Boolean)
Projects the data in the view onto a new set, stored in a collection using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, DataTable, Boolean)
Projects the data in the view onto a new set, stored in a datatable using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, IEntityCollection, Boolean, IPredicate)
Projects the data in the view onto a new set, stored in an entity collection using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, IEntityDataProjector, Boolean, IPredicate)
Projects the data in the view onto a new set, stored in a collection using the property projector objects to produce the actual data.
Public methodCreateProjection(ListIEntityPropertyProjector, DataTable, Boolean, IPredicate)
Projects the data in the view onto a new set, stored in a datatable using the property projector objects to produce the actual data.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable.)
Public methodIndexOf
Determines the index of the entity passed in in the entity view in filtered and sorted state.
Public methodToEntityCollection
Copies all entities in this view to a new entity collection and returns that collection. The returned collection is of the same type as the related collection. Entities aren't copied, just references to the entities.
Public methodToEntityCollection(Int32)
Copies all entities starting at startIndex in this view to a new entity collection and returns that collection. The returned collection is of the same type as the related collection. Entities aren't copied, just references to the entities.
Top
Events
  NameDescription
Public eventListChanged
Event which is fired when the entity collection related to this entityview is changed.
Top
See Also