NShape Reference
ICacheCollection<TEntity> Generic Interface

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
ICacheCollection<TEntity> Generic Interface

Previous pageReturn to chapter overviewNext page

A collection for storing entities and their owner sorted by id.

Syntax

public interface ICacheCollection<TEntity> : IEnumerable<EntityBucket<TEntity>>
 where TEntity : IEntity

Description

A collection for storing entities and their owner sorted by id.

Public Properties

Name

Description

Indexer

Provides direct access to the items in the collection via the IEntity.Id.

Public Methods

Name

Description

Add

Adds a new item to the collection.

Contains

Returns true if the given item is part of the collection.

GetEntity

Returns the entity associated with the given IEntity.Id.

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape