IEntityCollection2 Interface |
Namespace: SD.LLBLGen.Pro.ORMSupportClasses
The IEntityCollection2 type exposes the following members.
Name | Description | |
---|---|---|
ActiveContext |
Gets / sets the active context this object is in. Setting this property is not adding the object to the context, it will make contained
entities be added to the passed in context. If the object is already in a context, setting this property has no effect.
Setting this property is done by framework code, use the Context's Add/Get methods to work with contexts and entities.
(Inherited from IActiveContextParticipant.) | |
AllowEdit |
Default: true. If set to false, entities inside this collection won't be editable in a complex databinding scenario.
(Inherited from IEntityCollectionCore.) | |
AllowNew |
Default: true. If set to false, no new entities will be added through databinding.
(Inherited from IEntityCollectionCore.) | |
AllowRemove |
Default: false. If set to true, entities can be removed through databinding.
(Inherited from IEntityCollectionCore.) | |
Capacity |
Gets / sets the initial capacity of the entity collection.
| |
ConcurrencyPredicateFactoryToUse |
Gets / sets the IConcurrencyPredicateFactory instance to use when creating entity objects during an entity collection fetch
| |
ContainingEntityMappedField |
Gets the name of the field mapped onto the relation in the opposite entity which is represented by this collection, if this collection is
contained by an entity. E.g. it will return "Customer" if the relation Customer - Order has the field 'Customer' mapped onto it in Order and
this collection is the Orders collection in Customer. If this collection isn't contained in any entity, an empty string is returned.
(Inherited from IEntityCollectionCore.) | |
ContainsDirtyContents |
Returns true if this collection contains dirty objects. If this collection contains dirty objects, an
already filled collection should not be refreshed until a save is performed.
| |
Count |
The amount of IEntity2 elements in this entity collection
(Inherited from IEntityCollectionCore.) | |
DefaultView |
Gets the default view for this entitycollection. The returned value is the same instance every time this property is read.
It's a new entity view without a filter or a sorter.
| |
DirtyEntities |
Returns a readonly collection of entities which are flagged as dirty.
This collection is determined on the fly, you can use this collection to remove dirty entities from this entity collection.
| |
DoNotPerformAddIfPresent |
When set to true, an entity passed to Add() or Insert() will be tested if it's already present. If so, the index is returned and the
object is not added again. If set to false (default: true) this check is not performed. Setting this property to true can slow down fetch logic.
DataAccessAdapter's fetch logic sets this property to false during a multi-entity fetch.
| |
EntityFactoryToUse |
The EntityFactory2 to use when creating entity objects when bound to a control and AddNew is enabled.
| |
IsForMN |
Gets or sets a value indicating whether this instance is for a M:N relationship. If set to true, it will also set IsReadOnly to true.
(Inherited from IEntityCollectionCore.) | |
IsReadOnly |
Get / set the readonly flag for this collection.
(Inherited from IEntityCollectionCore.) | |
IsRemovalTracker |
Gets or sets a value indicating whether this instance is a removal tracker collection.
(Inherited from IEntityCollectionCore.) | |
Item |
Simple indexer.
| |
RemovedEntitiesTracker |
Gets or sets the entity collection which should be used as removed entities tracker. If this property is set to an IEntityCollection2 instance,
all entities which are removed from this collection are marked for deletion and placed in this removed entities tracker collection.
This collection can then later on be used to delete these entities from the database in one go.
|
Name | Description | |
---|---|---|
Add(IEntity2) |
Adds an IEntity2 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 IEntity2 implementing objects
| |
Clear |
Clears the collection
(Inherited from IEntityCollectionCore.) | |
Clear(Boolean) |
Clears the collection
(Inherited from IEntityCollectionCore.) | |
Contains(IEntity2) |
Returns true if the list contains the given IEntity2 Object
| |
Contains(IEntityCore) |
Returns true if the list contains the given entity
(Inherited from IEntityCollectionCore.) | |
CopyTo |
copy the complete list of IEntity2 objects to an array of IEntity objects.
| |
CreateHierarchicalProjection(DictionaryType, IEntityCollection2) |
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, IEntityCollection2) |
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 EntityView2 object of the right type on this collection with no filter nor sorter applied.
| |
CreateView(IPredicate) |
Creates a new EntityView2 object of the right type on this collection with the passed in filter applied
| |
CreateView(IPredicate, ISortExpression) |
Creates a new EntityView2 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 EntityView2 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.
| |
FindMatches |
Gets all indices of all the entities in the current order of this collection which match the passed in filter.
(Inherited from IEntityCollectionCore.) | |
GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) | |
IndexOf(IEntity2) |
Returns index in the list of given IEntity2 object.
| |
IndexOf(IEntityCore) |
Returns index in the list of given entity.
(Inherited from IEntityCollectionCore.) | |
Insert(Int32, IEntity2) |
Inserts an IEntity2 on position Index
| |
Insert(Int32, IEntityCore) |
Inserts an IEntityCore on position Index
(Inherited from IEntityCollectionCore.) | |
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 IEntityCollection2.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 IEntityCollection2.WriteXml() and the Xml has to be compatible with the structure of this entity collection.
| |
Remove(IEntity2) |
Remove given IEntity2 instance from the list.
| |
Remove(IEntityCore) |
Remove given IEntityCore instance from the list.
(Inherited from IEntityCollectionCore.) | |
RemoveAt |
Removes the IEntity instance at the index given.
| |
SetContainingEntityInfo |
Sets the entity information of the entity object containing this collection. Call this method only from
entity classes which contain EntityCollection 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.) | |
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(XmlWriter, XmlFormatAspect) |
Converts this entity collection to XML
| |
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(XmlWriter, XmlFormatAspect, String) |
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 | |
---|---|---|
EntityAdded |
Event which is raised at the End of the Add or Insert(index) routine.
(Inherited from IEntityCollectionCore.) | |
EntityAdding |
Event which is raised at the start of the Add or Insert(index) routine. To cancel the addition action, set cancel to true.
(Inherited from IEntityCollectionCore.) | |
EntityRemoved |
Event which is raised at the End of the Remove or RemoveAt(index) routine.
(Inherited from IEntityCollectionCore.) | |
EntityRemoving |
Event which is raised at the start of the Remove or RemoveAt(index) routine. To cancel the remove action, set cancel to true.
(Inherited from IEntityCollectionCore.) | |
ListChanged |
Event which is raised when the collection changed: an item changed, an item was removed, added, or the collection was cleared.
If possible, use one of the Entity* events of this collection.
(Inherited from IEntityCollectionCore.) |