Interface IUniqueEntityCollection<T>
Abstract representation of a collection of GTFS-entities that can be identified by an ID but one may represent multiple objects.
Inherited Members
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IUniqueEntityCollection<T> : IEnumerable<T>, IEnumerable where T : GTFSEntity
Type Parameters
T
|
Properties
Count
Returns the number of entities.
Declaration
int Count { get; }
Property Value
System.Int32
|
Methods
Add(T)
Adds an entity.
Declaration
void Add(T entity)
Parameters
T
entity
|
AddRange(IUniqueEntityCollection<T>)
Adds a range of entities.
Declaration
void AddRange(IUniqueEntityCollection<T> entities)
Parameters
IUniqueEntityCollection<T>
entities
|
Get()
Returns all entities.
Declaration
IEnumerable<T> Get()
Returns
System.Collections.Generic.IEnumerable<T>
|
Get(Int32)
Gets the entity at the given index.
Declaration
T Get(int idx)
Parameters
System.Int32
idx
|
Returns
T
|
Get(String)
Gets the entity with the given id.
Declaration
T Get(string entityId)
Parameters
System.String
entityId
|
Returns
T
|
GetIds()
Returns all entity ids.
Declaration
IEnumerable<string> GetIds()
Returns
System.Collections.Generic.IEnumerable<System.String>
|
Remove(String)
Removes the entity with the given id.
Declaration
bool Remove(string entityId)
Parameters
System.String
entityId
|
Returns
System.Boolean
|
RemoveAll()
Removes all entities from the collection and database
Declaration
void RemoveAll()
RemoveRange(IEnumerable<String>)
Removes a range of entities.
Declaration
void RemoveRange(IEnumerable<string> entityIds)
Parameters
System.Collections.Generic.IEnumerable<System.String>
entityIds
|
Update(String, T)
Update the entity with the given id.
Declaration
bool Update(string entityId, T newEntity)
Parameters
System.String
entityId
|
T
newEntity
|
Returns
System.Boolean
|