RelationCollection Methods |
The RelationCollection type exposes the following members.
Name | Description | |
---|---|---|
Add(IDynamicRelation) |
Adds the passed in IDynamicRelation instance to the list
| |
Add(IEntityRelation) |
Adds the passed in IEntityRelation instance to the list.
| |
Add(IRelation) |
Adds the passed in relation to this collection
| |
Add(IEntityRelation, JoinHint) |
Adds the passed in IEntityRelation instance to the list.
| |
Add(IEntityRelation, String) |
Adds the passed in IEntityRelation instance to the list, under the alias specified for the end entity. The start entity gets no alias.
The weakness of the relation is considered based on the ObeyWeakRelations setting.
| |
Add(IEntityRelation, String, JoinHint) |
Adds the passed in IEntityRelation instance to the list, under the alias specified for the end entity and will consider the relation's weakness
based on the hint value. The start entity gets no alias.
| |
Add(IEntityRelation, String, String, JoinHint) |
Adds the passed in IEntityRelation instance to the list, under the aliases specified and will consider the relation's weakness
based on the hint value. The start entity gets no alias.
| |
AddRange |
Adds the range of IRelation objects stored in c to this collection.
| |
Clear | Removes all items from the IList. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAllDerivedTables |
Gets all derived tables in the relations inside this relation collection.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUsedEntityTypeNamesAndAliases |
Gets per alias specified in a relation all entity names covered by that alias. This means that if an entity in a relation is based on multiple entities
(through inheritance) it will return all entity names the entity is based on, from the actual entity to the root of the hierarchy path and every
entity name in between.
| |
Insert |
Adds the passed in IRelation instance to the list at position index.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PreprocessRelations |
Preprocesses the relations in this relationcollection
The start/end entity can have an inheritance info object with them, causing these relations to
be inserted at that spot, where the additional relations for the start entity are added BEFORE the actual relation and the relations for the
end entity AFTER the actual relation.
| |
Remove |
Removes the passed in IRelation instance. Only the first instance will be removed.
| |
ToQueryText |
Converts the set of relations to a set of nested JOIN query elements using ANSI join syntaxis. Oracle 8i doesn't support ANSI join syntaxis
and therefore the OracleDQE has its own join code.
It uses a database specific creator object for database specific syntaxis, like the format of the tables / views and fields.
| |
ToQueryTextNonAnsi |
Converts the set of relations to a set of nested JOIN query elements using ANSI join syntaxis. Oracle 8i doesn't support ANSI join syntaxis
and therefore the OracleDQE has its own join code. It uses a database specific creator object for database specific syntaxis, like the format of the
tables / views and fields.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
CloneWithoutFirst |
Clones the relationcollection without the first relation.
(Defined by ORMClassExtensions.) | |
IsEmpty |
Determines whether the specified relation collection is empty. A null passed in is also considered empty.
(Defined by ORMClassExtensions.) | |
Last |
Gets the last relation in the passed in relations collection or null if it's empty
(Defined by ORMClassExtensions.) | |
RemoveLast |
Removes the last relation from the passed in relationcollection. Assumes last entry is an entity relation
(Defined by ORMClassExtensions.) |
Name | Description | |
---|---|---|
IListAdd | Adds an item to the IList. | |
IListContains | Determines whether the IList contains a specific value. | |
ICollectionCopyTo | ||
IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. | |
IXmlSerializableGetSchema |
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
| |
IListIndexOf | Determines the index of a specific item in the IList. | |
IListInsert | Inserts an item to the IList at the specified index. | |
IDeserializationCallbackOnDeserialization | Runs when the entire object graph has been deserialized. | |
IXmlSerializableReadXml |
Generates an object from its XML representation.
| |
IListRemove | Removes the first occurrence of a specific object from the IList. | |
IListRemoveAt | Removes the IList item at the specified index. | |
IXmlSerializableWriteXml |
Converts an object into its XML representation.
| |
IRelationCollectionAddFromClauseDirectives |
Adds the from clause directives specified to this collection
| |
IRelationCollectionReadXml |
Deserializes the object data on the xml reader into this instance
| |
IRelationCollectionToggleArtificialAliasingForTargetPerEntityRelations |
Enables / disables the artificial aliasing for target per entity relations. This method is used to enable the artificial aliasing of entities which
are in a hierarchy of TargetPerEntity and which are in the relations of this collection. This is switched on for dyn/typedlist fetches to be sure
dyn/typedlists with fields from multiple entities in the same inheritance hierarchy will be retrievable properly, as they need aliasing under the hood
but if the developer didn't alias the entities, the query will fail because the supertype(s) aren't joined multiple types.
| |
IRelationCollectionWriteXml |
Serializes the object as xml to the writer specified.
|