Interface IReadOnlyEntityCollection
Inherited Members
System.Collections.Generic.IEnumerable<Xbim.Common.IPersistEntity>.GetEnumerator()
Assembly: Xbim.Common.dll
Syntax
public interface IReadOnlyEntityCollection : IEnumerable<IPersistEntity>, IEnumerable
Properties
|
Improve this Doc
View Source
Count
Declaration
Property Value
Type |
Description |
System.Int64 |
|
Methods
|
Improve this Doc
View Source
CountOf<T>()
Declaration
long CountOf<T>()
where T : IPersistEntity
Returns
Type |
Description |
System.Int64 |
|
Type Parameters
|
Improve this Doc
View Source
FirstOrDefault<T>()
Returns first or default entity satysfying the condition
Declaration
T FirstOrDefault<T>()
where T : IPersistEntity
Returns
Type Parameters
Name |
Description |
T |
Type of the result
|
|
Improve this Doc
View Source
FirstOrDefault<T>(Func<T, Boolean>)
Returns first or default entity satysfying the condition
Declaration
T FirstOrDefault<T>(Func<T, bool> condition)
where T : IPersistEntity
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
condition |
Condition to evaluate
|
Returns
Type Parameters
Name |
Description |
T |
Type of the result
|
|
Improve this Doc
View Source
FirstOrDefault<T>(Func<T, Boolean>, String, IPersistEntity)
Returns firs or default entitiy satysfying the condition utilizing secondary index for inverse relations.
Always use this overload if you query for the entities on the other side of inverse relation (like all IfcRelations).
It might be significantly optimized in the implementation of this interface especially if the data
is stored in the database.
Declaration
T FirstOrDefault<T>(Func<T, bool> condition, string inverseProperty, IPersistEntity inverseArgument)
where T : IPersistEntity
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
condition |
Condition
|
System.String |
inverseProperty |
Name of the property which is being evaluated
|
IPersistEntity |
inverseArgument |
Entity which should be equal/contained in the property
|
Returns
Type Parameters
Name |
Description |
T |
Type of the result
|
|
Improve this Doc
View Source
OfType(String, Boolean)
Declaration
IEnumerable<IPersistEntity> OfType(string stringType, bool activate)
Parameters
Type |
Name |
Description |
System.String |
stringType |
|
System.Boolean |
activate |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IPersistEntity> |
|
|
Improve this Doc
View Source
OfType<T>()
Declaration
IEnumerable<T> OfType<T>()
where T : IPersistEntity
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
OfType<T>(Boolean)
Declaration
IEnumerable<T> OfType<T>(bool activate)
where T : IPersistEntity
Parameters
Type |
Name |
Description |
System.Boolean |
activate |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
Where<T>(Func<T, Boolean>)
Returns all entities satysfying the condition
Declaration
IEnumerable<T> Where<T>(Func<T, bool> condition)
where T : IPersistEntity
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
condition |
Condition to evaluate
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
Name |
Description |
T |
Type of the result
|
|
Improve this Doc
View Source
Where<T>(Func<T, Boolean>, String, IPersistEntity)
Returns all entities satysfying the condition utilizing secondary index for inverse relations.
Always use this overload if you query for the entities on the other side of inverse relation (like all IfcRelations).
It might be significantly optimized in the implementation of this interface especially if the data
is stored in the database.
Declaration
IEnumerable<T> Where<T>(Func<T, bool> condition, string inverseProperty, IPersistEntity inverseArgument)
where T : IPersistEntity
Parameters
Type |
Name |
Description |
System.Func<T, System.Boolean> |
condition |
Condition
|
System.String |
inverseProperty |
Name of the property which is being evaluated
|
IPersistEntity |
inverseArgument |
Entity which should be equal/contained in the property
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
Name |
Description |
T |
Type of the result
|
Extension Methods