Click or drag to resize

IEntityCollection2 Methods

The IEntityCollection2 type exposes the following members.

Methods
  NameDescription
Public methodAdd(IEntity2)
Adds an IEntity2 object to the list.
Public methodAdd(IEntityCore)
Adds an IEntityCore object to the list.
(Inherited from IEntityCollectionCore.)
Public methodAddRange
Adds the range of objects passed in. Objects have to be IEntity2 implementing objects
Public methodClear
Clears the collection
(Inherited from IEntityCollectionCore.)
Public methodClear(Boolean)
Clears the collection
(Inherited from IEntityCollectionCore.)
Public methodContains(IEntity2)
Returns true if the list contains the given IEntity2 Object
Public methodContains(IEntityCore)
Returns true if the list contains the given entity
(Inherited from IEntityCollectionCore.)
Public methodCopyTo
copy the complete list of IEntity2 objects to an array of IEntity objects.
Public methodCreateHierarchicalProjection(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.
Public methodCreateHierarchicalProjection(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.
Public methodCreateHierarchicalProjection(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.
Public methodCreateHierarchicalProjection(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.
Public methodCreateView
Creates a new EntityView2 object of the right type on this collection with no filter nor sorter applied.
Public methodCreateView(IPredicate)
Creates a new EntityView2 object of the right type on this collection with the passed in filter applied
Public methodCreateView(IPredicate, ISortExpression)
Creates a new EntityView2 object of the right type on this collection with the passed in filter and sorter applied to it.
Public methodCreateView(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.
Public methodFindMatches
Gets all indices of all the entities in the current order of this collection which match the passed in filter.
(Inherited from IEntityCollectionCore.)
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable.)
Public methodIndexOf(IEntity2)
Returns index in the list of given IEntity2 object.
Public methodIndexOf(IEntityCore)
Returns index in the list of given entity.
(Inherited from IEntityCollectionCore.)
Public methodInsert(Int32, IEntity2)
Inserts an IEntity2 on position Index
Public methodInsert(Int32, IEntityCore)
Inserts an IEntityCore on position Index
(Inherited from IEntityCollectionCore.)
Public methodReadXml(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.
Public methodReadXml(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.
Public methodRemove(IEntity2)
Remove given IEntity2 instance from the list.
Public methodRemove(IEntityCore)
Remove given IEntityCore instance from the list.
(Inherited from IEntityCollectionCore.)
Public methodRemoveAt
Removes the IEntity instance at the index given.
Public methodSetContainingEntityInfo
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.
Public methodSort(Int32, ListSortDirection)
Applies sorting like IBindingList.ApplySort, on the field with the index fieldIndex and with the direction specified.
(Inherited from IEntityCollectionCore.)
Public methodSort(Int32, ListSortDirection, IComparerObject)
Sorts the collection.
(Inherited from IEntityCollectionCore.)
Public methodSort(String, ListSortDirection, IComparerObject)
Sorts the collection.
(Inherited from IEntityCollectionCore.)
Public methodWriteXml(String)
Converts this entity collection to XML, recursively. Uses "EntityCollection" for the rootnode name
Public methodWriteXml(String, String)
Converts this entity collection to XML.
Public methodWriteXml(XmlDocument, XmlNode)
Converts this entity collection to XML. Uses "EntityCollection" for the rootnode name
Public methodWriteXml(XmlWriter, XmlFormatAspect)
Converts this entity collection to XML
Public methodWriteXml(XmlFormatAspect, String)
Converts this entity collection to XML, recursively. Uses "EntityCollection" for the rootnode name
Public methodWriteXml(String, XmlDocument, XmlNode)
Converts this entity collection to XML.
Public methodWriteXml(XmlWriter, XmlFormatAspect, String)
Converts this entity collection to XML
Public methodWriteXml(XmlFormatAspect, String, String)
Converts this entity collection to XML.
Public methodWriteXml(XmlFormatAspect, XmlDocument, XmlNode)
Converts this entity collection to XML. Uses "EntityCollection" for the rootnode name
Public methodWriteXml(XmlFormatAspect, String, XmlDocument, XmlNode)
Converts this entity collection to XML.
Top
See Also