EntityView2<TEntity> Class |
Namespace: SD.LLBLGen.Pro.ORMSupportClasses
public class EntityView2<TEntity> : EntityViewBase<TEntity>, IEntityView2, IEnumerable where TEntity : EntityBase2, IEntity2
The EntityView2<TEntity> type exposes the following members.
Name | Description | |
---|---|---|
![]() | AllowEdit |
Gets / sets whether you can update items in the list.
(Inherited from EntityViewBase<TEntity>.) |
![]() | AllowNew |
Gets/sets whether you can add items to the list using AddNew().
(Inherited from EntityViewBase<TEntity>.) |
![]() | AllowRemove |
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from EntityViewBase<TEntity>.) |
![]() | Container | Gets the container for the component. (Inherited from MarshalByValueComponent.) |
![]() | Count |
Gets the number of elements contained in the ICollection.
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | IsSorted |
Gets whether the items in the list are sorted.
(Inherited from EntityViewBase<TEntity>.) |
![]() | Item |
Gets the element at the specified index in this view.
(Inherited from EntityViewBase<TEntity>.) |
![]() | RaisesItemChangedEvents |
Gets a value indicating whether the IRaiseItemChangedEvents object raises ListChanged events.
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | SortProperty |
Gets the PropertyDescriptor that is being used for sorting.
(Inherited from EntityViewBase<TEntity>.) |
Name | Description | |
---|---|---|
![]() | AddNew |
Adds a new entity through databinding.
(Inherited from EntityViewBase<TEntity>.) |
![]() | ApplySort(ListSortDescriptionCollection) |
Sorts the data source based on the given ListSortDescriptionCollection.
(Inherited from EntityViewBase<TEntity>.) |
![]() | ApplySort(PropertyDescriptor, ListSortDirection) |
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | CopyTo | (Inherited from EntityViewBase<TEntity>.) |
![]() | CreateDummyInstance |
Creates a dummy instance for the related entity collection of this view. This is done using the entityfactory of that entitycollection.
(Overrides EntityViewBase<TEntity>.CreateDummyInstance().) |
![]() | CreateProjection(List<IEntityPropertyProjector>, IEntityCollection2) |
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(List<IEntityPropertyProjector>, 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(List<IEntityPropertyProjector>, 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(List<IEntityPropertyProjector>, IEntityCollection2, 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(List<IEntityPropertyProjector>, 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(List<IEntityPropertyProjector>, 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(List<IEntityPropertyProjector>, IEntityCollection2, 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(List<IEntityPropertyProjector>, 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(List<IEntityPropertyProjector>, 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(List<IEntityPropertyProjector>, Boolean, IPredicate, IEntityDataProjector) |
Creates a projection of the current view data, using the passed in field projections and the projector.
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | GetEntityAtIndex |
Gets the entity at the specofied index in the view.
(Inherited from EntityViewBase<TEntity>.) |
![]() | GetEntityFieldPropertyDescriptors |
Gets the entity field property descriptors for the dummy instance passed in.
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | GetListName |
Returns the name of the list.
(Inherited from EntityViewBase<TEntity>.) |
![]() | GetPropertyDescriptors |
Gets the property descriptors for the entity passed in. This is a dummy instance, and used to produce the property descriptors.
(Inherited from EntityViewBase<TEntity>.) |
![]() | GetService | Gets the implementer of the IServiceProvider. (Inherited from MarshalByValueComponent.) |
![]() | GetSortProperty |
Gets the property descriptor for the first sortclause.
(Overrides EntityViewBase<TEntity>.GetSortProperty(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 EntityViewBase<TEntity>.) |
![]() | InitClassCore |
Inits the class.
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
![]() | Refresh |
Refreshes this view by re-applying filter and sorter on the related collection
(Inherited from EntityViewBase<TEntity>.) |
![]() | Remove |
Removes the specified entity from the related collection, if the entity is in the view.
(Inherited from EntityViewBase<TEntity>.) |
![]() | RemoveAt |
Removes the item at the specified index in this view from the related collection
(Inherited from EntityViewBase<TEntity>.) |
![]() | RemoveSort |
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from EntityViewBase<TEntity>.) |
![]() | SetFilter |
Applies the filter specified to the set related collection
(Inherited from EntityViewBase<TEntity>.) |
![]() | SetSorter |
Sets the sort expression for the filtered entities in this view. It sorts the entities which are in this view,
(Inherited from EntityViewBase<TEntity>.) |
![]() | 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 EntityViewBase<TEntity>.) |
Name | Description | |
---|---|---|
![]() ![]() | IList.Add |
Not supported. Use AddNew() or add a new object to the related entity collection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.AddIndex |
Adds the PropertyDescriptor to the indexes used for searching.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.AddNew |
Adds a new item to the list.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.AllowEdit |
Gets whether you can update items in the list.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.AllowNew |
Gets whether you can add items to the list using AddNew().
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.AllowRemove |
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.ApplySort |
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingListView.ApplySort |
Sorts the data source based on the given ListSortDescriptionCollection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.Clear |
Not supported. Clear the related entity collection instead.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.Contains |
Determines whether the IList contains a specific value.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | ICollection.CopyTo | (Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | ICollection.Count |
Gets the number of elements contained in the ICollection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingListView.Filter |
Gets or sets the filter to be used to exclude items from the collection of items returned by the data source
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.Find |
Returns the index of the row that has the given PropertyDescriptor.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEnumerable<TEntity>.GetEnumerator |
Returns an enumerator that iterates through the collection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEnumerable.GetEnumerator |
Returns an enumerator that iterates through a collection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.IndexOf |
Determines the index of a specific item in the IList.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.Insert |
Not supported. Insert a new entity in the related collection instead.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.IsFixedSize |
Returns false
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.IsReadOnly |
Returns false.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.IsSorted |
Gets whether the items in the list are sorted.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | ICollection.IsSynchronized |
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.Item |
Indexer via IList. Setter isn't supported, getter returns the typed indexer's value.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.Remove |
Not supported. Remove the entity from the related collection instead.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IList.RemoveAt |
Not supported. Remove the entity from the related collection instead.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingListView.RemoveFilter |
Removes the current filter applied to the data source.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.RemoveIndex |
Removes the PropertyDescriptor from the indexes used for searching.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.RemoveSort |
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingListView.SortDescriptions |
Gets the collection of sort descriptions currently applied to the data source.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.SortDirection |
Gets the direction of the sort.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.SortProperty |
Gets the PropertyDescriptor that is being used for sorting.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingListView.SupportsAdvancedSorting |
Gets a value indicating whether the data source supports advanced sorting.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.SupportsChangeNotification |
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingListView.SupportsFiltering |
Gets a value indicating whether the data source supports filtering.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.SupportsSearching |
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IBindingList.SupportsSorting |
Gets whether the list supports sorting.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | ICollection.SyncRoot |
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityView2.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.
|
![]() ![]() | IEntityView2.CreateProjection(List<IEntityPropertyProjector>, IEntityCollection2) |
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.
|
![]() ![]() | IEntityView2.CreateProjection(List<IEntityPropertyProjector>, IEntityCollection2, 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.
|
![]() ![]() | IEntityView2.CreateProjection(List<IEntityPropertyProjector>, IEntityCollection2, 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.
|
![]() ![]() | IEntityView2.IndexOf |
Determines the index of the entity passed in in the entity view in filtered and sorted state.
|
![]() ![]() | IEntityView2.Item |
Gets the IEntity2 at the specified index in the view
|
![]() ![]() | IEntityView2.RelatedCollection |
Gets the related collection set for this view.
|
![]() ![]() | IEntityView2.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.
|
![]() ![]() | IEntityView2.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.
|
![]() ![]() | IEntityViewCore.AllowEdit |
Gets / sets whether you can update items in the list.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.AllowNew |
Gets/sets whether you can add items to the list using AddNew().
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.AllowRemove |
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.Count |
Gets the number of elements contained in the ICollection.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.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 EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.Filter |
Gets or sets the filter to use for this entity view.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.IndexOf |
Determines the index of the entity passed in in the entity view in filtered and sorted state.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.Item |
Gets the element at the specified index in this view.
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.Refresh |
Refreshes this view by re-applying filter and sorter on the related collection
(Inherited from EntityViewBase<TEntity>.) |
![]() ![]() | IEntityViewCore.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 EntityViewBase<TEntity>.) |