IEntityCollection Methods |
The IEntityCollection type exposes the following members.
Name | Description | |
---|---|---|
Add(IEntity) |
Adds an IEntity object to the list.
| |
Add(IEntityCore) |
Adds an IEntityCore object to the list.
(Inherited from IEntityCollectionCore.) | |
AddRange |
Adds the range of objects passed in. Objects have to be IEntity implementing objects
| |
Clear |
Clears the collection
(Inherited from IEntityCollectionCore.) | |
Clear(Boolean) |
Clears the collection
(Inherited from IEntityCollectionCore.) | |
Contains(IEntity) |
Returns true if the list contains the given IEntity Object
| |
Contains(IEntityCore) |
Returns true if the list contains the given entity
(Inherited from IEntityCollectionCore.) | |
CopyTo |
copy the complete list of IEntity objects to an array of IEntity objects.
| |
CreateHierarchicalProjection(DictionaryType, IEntityCollection) |
Creates a hierarchical projection of all the data in this collection and for each type in the complete graph found starting with each entity in
this collection. Per entity type found, an entry is stored inside the destination dictionary. It will simply project every data element.
| |
CreateHierarchicalProjection(DataSet) |
Creates a hierarchical projection of all the data in this collection and for each type in the complete graph found starting with each entity in
this collection. Per entity type found, a new datatable is created inside destination or if one with the name of the entity is already present,
that one is used. It will simply project every data element.
| |
CreateHierarchicalProjection(ListIViewProjectionData, DictionaryType, IEntityCollection) |
Creates a hierarchical projection of all the data in this collection and for each type in the complete graph found starting with each entity in this collection,
using the collectionProjections data passed in. Per entity type found, an entry is stored inside the destination dictionary.
| |
CreateHierarchicalProjection(ListIViewProjectionData, DataSet) |
Creates a hierarchical projection of all the data in this collection and for each type in the complete graph found starting with each entity in this
collection, using the collectionProjections data passed in. Per entity type found, a new datatable is created inside destination or if one with
the name of the entity is already present, that one is used.
| |
CreateView |
Creates a new EntityView object of the right type on this collection with no filter nor sorter applied.
| |
CreateView(IPredicate) |
Creates a new EntityView object of the right type on this collection with the passed in filter applied
| |
CreateView(IPredicate, ISortExpression) |
Creates a new EntityView object of the right type on this collection with the passed in filter and sorter applied to it.
| |
CreateView(IPredicate, ISortExpression, PostCollectionChangeAction) |
Creates a new EntityView object of the right type on this collection with the passed in filter and sorter applied to it and the
dataChangeAction set to the passed in value.
| |
DeleteMulti |
Deletes all Entities in the IEntityCollection from the persistent storage. If this IEntityCollection is added
to a transaction, the delete processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the deletes are done in a
new Transaction (which is created in an inherited method.)
Deleted entities are marked deleted and are removed from the collection.
| |
DeleteMulti(IPredicate) | Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter,
formulated in the predicate or predicate expression definition. | |
DeleteMulti(IPredicate, IRelationCollection) | Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter,
formulated in the predicate or predicate expression definition. | |
DeleteMultiAsync |
Async variant of DeleteMulti.
Deletes all Entities in the IEntityCollection from the persistent storage. If this IEntityCollection is added
to a transaction, the delete processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the deletes are done in a/ new Transaction.
Deleted entities are marked deleted and are removed from the collection.
| |
DeleteMultiAsync(CancellationToken) |
Async variant of DeleteMulti.
Deletes all Entities in the IEntityCollection from the persistent storage. If this IEntityCollection is added
to a transaction, the delete processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the deletes are done in a/ new Transaction.
Deleted entities are marked deleted and are removed from the collection.
| |
DeleteMultiAsync(IPredicate) |
Async variant of DeleteMulti(IPredicate).
Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter,
formulated in the predicate or predicate expression definition.
| |
DeleteMultiAsync(IPredicate, IRelationCollection) |
Async variant of DeleteMulti(IPredicate, IRelationCollection).
Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter,
formulated in the predicate or predicate expression definition.
| |
DeleteMultiAsync(IPredicate, CancellationToken) |
Async variant of DeleteMulti(IPredicate).
Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter,
formulated in the predicate or predicate expression definition.
| |
DeleteMultiAsync(IPredicate, IRelationCollection, CancellationToken) |
Async variant of DeleteMulti(IPredicate, IRelationCollection).
Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter,
formulated in the predicate or predicate expression definition.
| |
FetchExcludedFields |
Loads the data for the excluded fields specified in the list of excluded fields into all the entities in this collection.
| |
FetchExcludedFieldsAsync |
Async variant of FetchExcludedFields(ExcludeIncludeFieldsList).
Loads the data for the excluded fields specified in the list of excluded fields into all the entities in this collection.
| |
FindMatches |
Gets all indices of all the entities in the current order of this collection which match the passed in filter.
(Inherited from IEntityCollectionCore.) | |
GetDbCount | Gets the amount of Entity objects in the database. | |
GetDbCount(IPredicate) | Gets the amount of Entity objects in the database, when taking into account the filter specified. | |
GetDbCount(IPredicate, IRelationCollection) | Gets the amount of Entity objects in the database, when taking into account the filter specified and the relations specified. | |
GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) | |
GetMulti(IPredicate) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition. | |
GetMulti(IPredicate, IPrefetchPath) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
GetMulti(IPredicate, IRelationCollection) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition. | |
GetMulti(IPredicate, Int64) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition. | |
GetMulti(IPredicate, ExcludeIncludeFieldsList, IPrefetchPath) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
GetMulti(IPredicate, ExcludeIncludeFieldsList, Int64) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition. | |
GetMulti(IPredicate, Int64, ISortExpression) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition. | |
GetMulti(IPredicate, Int64, ISortExpression, IRelationCollection) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition. | |
GetMulti(IPredicate, Int64, ISortExpression, IRelationCollection, IPrefetchPath) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
GetMulti(IPredicate, Int64, ISortExpression, IRelationCollection, Int32, Int32) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
GetMulti(IPredicate, Int64, ISortExpression, IRelationCollection, IPrefetchPath, Int32, Int32) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
GetMulti(IPredicate, Int64, ISortExpression, IRelationCollection, IPrefetchPath, ExcludeIncludeFieldsList, Int32, Int32) | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
IndexOf(IEntity) |
Returns index in the list of given IEntity object.
| |
IndexOf(IEntityCore) |
Returns index in the list of given entity.
(Inherited from IEntityCollectionCore.) | |
Insert(Int32, IEntity) |
Inserts an IEntity on position Index
| |
Insert(Int32, IEntityCore) |
Inserts an IEntityCore on position Index
(Inherited from IEntityCollectionCore.) | |
InsertMulti |
Inserts all rows matching the select query into the target of the entity type this collection is for.
Which fields are inserted is defined by the select query. Sequenced fields are taken care of if they're not specified in the select query.
This method will result in an INSERT INTO entityTarget (field1, field2...) SELECT ... statement.
| |
InsertMultiAsync(DynamicQuery) |
Async variant of InsertMulti(DynamicQuery)
Inserts all rows matching the select query into the target of the entity type this collection is for.
Which fields are inserted is defined by the select query. Sequenced fields are taken care of if they're not specified in the select query.
This method will result in an INSERT INTO entityTarget (field1, field2...) SELECT ... statement.
| |
InsertMultiAsync(DynamicQuery, CancellationToken) |
Async variant of InsertMulti(DynamicQuery)
Inserts all rows matching the select query into the target of the entity type this collection is for.
Which fields are inserted is defined by the select query. Sequenced fields are taken care of if they're not specified in the select query.
This method will result in an INSERT INTO entityTarget (field1, field2...) SELECT ... statement.
| |
PerformGetMulti | Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query. | |
PerformGetMultiAsync |
Async variant of PerformGetMulti(QueryParameters).
Retrieves in this Collection object all Entity objects which match with the specified filter, formulated in the predicate or predicate expression definition, using the passed in relations to construct the total query.
| |
ReadXml(String) |
Will fill the entity collection and its containing members (recursively) with the data stored in the XmlNode passed in. The XmlNode has to
be filled with Xml in the format written by IEntityCollection.WriteXml() and the Xml has to be compatible with the structure of this entity collection.
| |
ReadXml(XmlNode) |
Will fill the entity collection and its containing members (recursively) with the data stored in the XmlNode passed in. The XmlNode has to
be filled with Xml in the format written by IEntityCollection.WriteXml() and the Xml has to be compatible with the structure of this entity collection.
| |
Remove(IEntity) |
Remove given IEntity from the list.
| |
Remove(IEntityCore) |
Remove given IEntityCore instance from the list.
(Inherited from IEntityCollectionCore.) | |
SaveMulti |
Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added
to a transaction, the save processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the saves are done in a
new Transaction (which is created in an inherited method.). Will not recursively save entities inside the collection.
| |
SaveMulti(Boolean) |
Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added
to a transaction, the save processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the saves are done in a
new Transaction (which is created in an inherited method.)
| |
SaveMultiAsync |
Async variant of SaveMulti.
Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added
to a transaction, the save processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the saves are done in a
new Transaction (which is created in an inherited method.). Will not recursively save entities inside the collection.
| |
SaveMultiAsync(Boolean) |
Async variant of SaveMulti(Boolean).
Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added to a transaction, the save processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the saves are done in a new Transaction (which is created in an inherited method.)
| |
SaveMultiAsync(CancellationToken) |
Async variant of SaveMulti.
Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added to a transaction, the save processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the saves are done in a new Transaction (which is created in an inherited method.)
| |
SaveMultiAsync(Boolean, CancellationToken) |
Async variant of SaveMulti(Boolean).
Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added to a transaction, the save processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the saves are done in a new Transaction (which is created in an inherited method.)
| |
SetContainingEntityInfo |
Sets the entity information of the entity object containing this collection. Call this method only from
entity classes which contain IEntityCollection members, like 'Customer' which contains 'Orders' entity collection.
| |
Sort(Int32, ListSortDirection) |
Applies sorting like IBindingList.ApplySort, on the field with the index fieldIndex and with the direction specified.
(Inherited from IEntityCollectionCore.) | |
Sort(Int32, ListSortDirection, IComparerObject) |
Sorts the collection.
(Inherited from IEntityCollectionCore.) | |
Sort(String, ListSortDirection, IComparerObject) |
Sorts the collection.
(Inherited from IEntityCollectionCore.) | |
UpdateMulti(IEntity, IPredicate) | Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues. | |
UpdateMulti(IEntity, IPredicate, IRelationCollection) | Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues. | |
UpdateMultiAsync(IEntity, IPredicate) |
Async variant of UpdateMulti(IEntity, IPredicate).
Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues.
| |
UpdateMultiAsync(IEntity, IPredicate, IRelationCollection) |
Async variant of UpdateMulti(IEntity, IPredicate, IRelationCollection).
Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues.
| |
UpdateMultiAsync(IEntity, IPredicate, CancellationToken) |
Async variant of UpdateMulti(IEntity, IPredicate).
Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues.
| |
UpdateMultiAsync(IEntity, IPredicate, IRelationCollection, CancellationToken) |
Async variant of UpdateMulti(IEntity, IPredicate, IRelationCollection).
Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues.
| |
WriteXml(String) |
Converts this entity collection to XML, recursively. Uses "EntityCollection" for the rootnode name
| |
WriteXml(String, String) |
Converts this entity collection to XML.
| |
WriteXml(XmlDocument, XmlNode) |
Converts this entity collection to XML. Uses "EntityCollection" for the rootnode name
| |
WriteXml(XmlFormatAspect, String) |
Converts this entity collection to XML, recursively. Uses "EntityCollection" for the rootnode name
| |
WriteXml(String, XmlDocument, XmlNode) |
Converts this entity collection to XML.
| |
WriteXml(XmlFormatAspect, String, String) |
Converts this entity collection to XML.
| |
WriteXml(XmlFormatAspect, XmlDocument, XmlNode) |
Converts this entity collection to XML. Uses "EntityCollection" for the rootnode name
| |
WriteXml(XmlFormatAspect, String, XmlDocument, XmlNode) |
Converts this entity collection to XML.
|
Name | Description | |
---|---|---|
GetMultiTEntity |
Fetches the query specified into the collection specified.
(Defined by SelfServicingExtensionMethods.) | |
GetMultiAsyncTEntity(EntityQueryTEntity) | Overloaded.
Async variant of GetMultiTEntity(IEntityCollection, EntityQueryTEntity).
Fetches the query specified into the collection specified.
(Defined by SelfServicingExtensionMethods.) | |
GetMultiAsyncTEntity(EntityQueryTEntity, CancellationToken) | Overloaded.
Async variant of GetMultiTEntity(IEntityCollection, EntityQueryTEntity).
Fetches the query specified into the collection specified.
(Defined by SelfServicingExtensionMethods.) |