Converts a given entities to a live view. That live view also supports adding/removing entities to/from the given clientCache.

Namespace:  C1.Silverlight.Data.RiaServices
Assembly:  C1.Silverlight.Data.Entity (in C1.Silverlight.Data.Entity.dll)

Syntax

C#
public static View<T> AsLive<T>(
	this EntityCollection<T> entities,
	RiaClientCache clientCache
)
where T : Entity
Visual Basic
<ExtensionAttribute> _
Public Shared Function AsLive(Of T As Entity) ( _
	entities As EntityCollection(Of T), _
	clientCache As RiaClientCache _
) As View(Of T)

Parameters

entities
Type: EntityCollection<(Of <(<'T>)>)>
The entity collection to convert.
clientCache
Type: C1.Silverlight.Data.RiaServices..::..RiaClientCache
An instance of the RiaClientCache class to which this entity collection belongs. It is used in adding/removing entities.

Type Parameters

T
The type of the entities in the given entities.

Return Value

The resulting live view.

See Also