EntityViewTEntity Class |
Namespace: SD.LLBLGen.Pro.ORMSupportClasses
public class EntityView<TEntity> : EntityViewBase<TEntity>, IEntityView, IEnumerable where TEntity : EntityBase, IEntity
The EntityViewTEntity type exposes the following members.
Name | Description | |
---|---|---|
AllowEdit |
Gets / sets whether you can update items in the list.
(Inherited from EntityViewBaseTEntity.) | |
AllowNew |
Gets/sets whether you can add items to the list using AddNew.
(Inherited from EntityViewBaseTEntity.) | |
AllowRemove |
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from EntityViewBaseTEntity.) | |
Container | Gets the container for the component. (Inherited from MarshalByValueComponent.) | |
Count |
Gets the number of elements contained in the ICollection.
(Inherited from EntityViewBaseTEntity.) | |
DataChangeAction |
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.
(Inherited from EntityViewBaseTEntity.) | |
DesignMode | Gets a value indicating whether the component is currently in design mode. (Inherited from MarshalByValueComponent.) | |
EntityIndices |
Gets the entity indices for the entities which are in this view, in the order sorted by the sorter set.
(Inherited from EntityViewBaseTEntity.) | |
Events | Gets the list of event handlers that are attached to this component. (Inherited from MarshalByValueComponent.) | |
Filter |
Gets or sets the filter to use for this entity view.
(Inherited from EntityViewBaseTEntity.) | |
IsSorted |
Gets whether the items in the list are sorted.
(Inherited from EntityViewBaseTEntity.) | |
Item |
Gets the element at the specified index in this view.
(Inherited from EntityViewBaseTEntity.) | |
RaisesItemChangedEvents |
Gets a value indicating whether the IRaiseItemChangedEvents object raises ListChanged events.
(Inherited from EntityViewBaseTEntity.) | |
RelatedCollection |
Gets the related collection set for this view.
| |
RelatedCollectionInternal |
Gets the related collection using a property which is solely for internal usage. This is then used by the derived classes to expose the collection
in a more typed manner.
(Inherited from EntityViewBaseTEntity.) | |
Site | Gets or sets the site of the component. (Inherited from MarshalByValueComponent.) | |
SortDirection |
IBindingList member. Gets the direction of the sort. This property returns the value of the first SortClause in the set sorter.
(Inherited from EntityViewBaseTEntity.) | |
Sorter |
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.
(Inherited from EntityViewBaseTEntity.) | |
SortProperty |
Gets the PropertyDescriptor that is being used for sorting.
(Inherited from EntityViewBaseTEntity.) |
Name | Description | |
---|---|---|
AddNew |
Adds a new entity through databinding.
(Inherited from EntityViewBaseTEntity.) | |
ApplySort(ListSortDescriptionCollection) |
Sorts the data source based on the given ListSortDescriptionCollection.
(Inherited from EntityViewBaseTEntity.) | |
ApplySort(PropertyDescriptor, ListSortDirection) |
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
(Inherited from EntityViewBaseTEntity.) | |
Contains |
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.
(Inherited from EntityViewBaseTEntity.) | |
CopyTo | (Inherited from EntityViewBaseTEntity.) | |
CreateDummyInstance |
Creates a dummy instance for the related entity collection of this view. This is done using the entityfactory of that entitycollection.
(Overrides EntityViewBaseTEntityCreateDummyInstance.) | |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(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.
| |
CreateProjection(ListIEntityPropertyProjector, Boolean, IPredicate, IEntityDataProjector) |
Creates a projection of the current view data, using the passed in field projections and the projector.
(Inherited from EntityViewBaseTEntity.) | |
Dispose | Releases all resources used by the MarshalByValueComponent. (Inherited from MarshalByValueComponent.) | |
Dispose(Boolean) |
Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources.
(Inherited from EntityViewBaseTEntity.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | (Inherited from MarshalByValueComponent.) | |
Find |
Returns the index of the row that has the given PropertyDescriptor.
(Inherited from EntityViewBaseTEntity.) | |
GetEntityAtIndex |
Gets the entity at the specofied index in the view.
(Inherited from EntityViewBaseTEntity.) | |
GetEntityFieldPropertyDescriptors |
Gets the entity field property descriptors for the dummy instance passed in.
(Inherited from EntityViewBaseTEntity.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetItemProperties |
Returns the PropertyDescriptorCollection that represents the properties on each item used to bind data.
(Inherited from EntityViewBaseTEntity.) | |
GetListName |
Returns the name of the list.
(Inherited from EntityViewBaseTEntity.) | |
GetPropertyDescriptors |
Gets the property descriptors for the entity passed in. This is a dummy instance, and used to produce the property descriptors.
(Inherited from EntityViewBaseTEntity.) | |
GetService | Gets the implementer of the IServiceProvider. (Inherited from MarshalByValueComponent.) | |
GetSortProperty |
Gets the property descriptor for the first sortclause.
(Overrides EntityViewBaseTEntityGetSortProperty(ISortExpression).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf |
Determines the index of the entity passed in in the entity view in filtered and sorted state.
(Inherited from EntityViewBaseTEntity.) | |
InitClassCore |
Inits the class.
(Inherited from EntityViewBaseTEntity.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnListChanged |
Called when something changes in the related list or this view.
(Inherited from EntityViewBaseTEntity.) | |
Refresh |
Refreshes this view by re-applying filter and sorter on the related collection
(Inherited from EntityViewBaseTEntity.) | |
Remove |
Removes the specified entity from the related collection, if the entity is in the view.
(Inherited from EntityViewBaseTEntity.) | |
RemoveAt |
Removes the item at the specified index in this view from the related collection
(Inherited from EntityViewBaseTEntity.) | |
RemoveSort |
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from EntityViewBaseTEntity.) | |
SetFilter |
Applies the filter specified to the set related collection
(Inherited from EntityViewBaseTEntity.) | |
SetSorter |
Sets the sort expression for the filtered entities in this view. It sorts the entities which are in this view,
(Inherited from EntityViewBaseTEntity.) | |
ToEntityCollection |
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.
| |
ToEntityCollection(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.
| |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from MarshalByValueComponent.) |
Name | Description | |
---|---|---|
Disposed | Adds an event handler to listen to the Disposed event on the component. (Inherited from MarshalByValueComponent.) | |
ListChanged |
Event which is fired when the entity collection related to this entityview is changed.
(Inherited from EntityViewBaseTEntity.) |
Name | Description | |
---|---|---|
IListAdd |
Not supported. Use AddNew() or add a new object to the related entity collection.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListAddIndex |
Adds the PropertyDescriptor to the indexes used for searching.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListAddNew |
Adds a new item to the list.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListAllowEdit |
Gets whether you can update items in the list.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListAllowNew |
Gets whether you can add items to the list using AddNew.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListAllowRemove |
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from EntityViewBaseTEntity.) | |
IBindingListApplySort |
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListViewApplySort |
Sorts the data source based on the given ListSortDescriptionCollection.
(Inherited from EntityViewBaseTEntity.) | |
IListClear |
Not supported. Clear the related entity collection instead.
(Inherited from EntityViewBaseTEntity.) | |
IListContains |
Determines whether the IList contains a specific value.
(Inherited from EntityViewBaseTEntity.) | |
ICollectionCopyTo | (Inherited from EntityViewBaseTEntity.) | |
ICollectionCount |
Gets the number of elements contained in the ICollection.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListViewFilter |
Gets or sets the filter to be used to exclude items from the collection of items returned by the data source
(Inherited from EntityViewBaseTEntity.) | |
IBindingListFind |
Returns the index of the row that has the given PropertyDescriptor.
(Inherited from EntityViewBaseTEntity.) | |
IEnumerableTEntityGetEnumerator |
Returns an enumerator that iterates through the collection.
(Inherited from EntityViewBaseTEntity.) | |
IEnumerableGetEnumerator |
Returns an enumerator that iterates through a collection.
(Inherited from EntityViewBaseTEntity.) | |
IListIndexOf |
Determines the index of a specific item in the IList.
(Inherited from EntityViewBaseTEntity.) | |
IListInsert |
Not supported. Insert a new entity in the related collection instead.
(Inherited from EntityViewBaseTEntity.) | |
IListIsFixedSize |
Returns false
(Inherited from EntityViewBaseTEntity.) | |
IListIsReadOnly |
Returns false.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListIsSorted |
Gets whether the items in the list are sorted.
(Inherited from EntityViewBaseTEntity.) | |
ICollectionIsSynchronized |
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from EntityViewBaseTEntity.) | |
IListItem |
Indexer via IList. Setter isn't supported, getter returns the typed indexer's value.
(Inherited from EntityViewBaseTEntity.) | |
IListRemove |
Not supported. Remove the entity from the related collection instead.
(Inherited from EntityViewBaseTEntity.) | |
IListRemoveAt |
Not supported. Remove the entity from the related collection instead.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListViewRemoveFilter |
Removes the current filter applied to the data source.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListRemoveIndex |
Removes the PropertyDescriptor from the indexes used for searching.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListRemoveSort |
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from EntityViewBaseTEntity.) | |
IBindingListViewSortDescriptions |
Gets the collection of sort descriptions currently applied to the data source.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListSortDirection |
Gets the direction of the sort.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListSortProperty |
Gets the PropertyDescriptor that is being used for sorting.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListViewSupportsAdvancedSorting |
Gets a value indicating whether the data source supports advanced sorting.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListSupportsChangeNotification |
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListViewSupportsFiltering |
Gets a value indicating whether the data source supports filtering.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListSupportsSearching |
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
(Inherited from EntityViewBaseTEntity.) | |
IBindingListSupportsSorting |
Gets whether the list supports sorting.
(Inherited from EntityViewBaseTEntity.) | |
ICollectionSyncRoot |
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewContains |
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.
| |
IEntityViewCreateProjection(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.
| |
IEntityViewCreateProjection(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.
| |
IEntityViewCreateProjection(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.
| |
IEntityViewIndexOf |
Determines the index of the entity passed in in the entity view in filtered and sorted state.
| |
IEntityViewItem |
Gets the IEntity at the specified index in the view
| |
IEntityViewRelatedCollection |
Gets the related collection set for this view.
| |
IEntityViewToEntityCollection |
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.
| |
IEntityViewToEntityCollection(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.
| |
IEntityViewCoreAllowEdit |
Gets / sets whether you can update items in the list.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreAllowNew |
Gets/sets whether you can add items to the list using AddNew.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreAllowRemove |
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreCount |
Gets the number of elements contained in the ICollection.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreDataChangeAction |
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.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreFilter |
Gets or sets the filter to use for this entity view.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreIndexOf |
Determines the index of the entity passed in in the entity view in filtered and sorted state.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreItem |
Gets the element at the specified index in this view.
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreRefresh |
Refreshes this view by re-applying filter and sorter on the related collection
(Inherited from EntityViewBaseTEntity.) | |
IEntityViewCoreSorter |
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.
(Inherited from EntityViewBaseTEntity.) |