Defines a scope of data access. Provides facilities to create client views.

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

Syntax

C#
public class ClientScope : IDisposable, 
	IItemFactoryProvider
Visual Basic
Public Class ClientScope _
	Implements IDisposable, IItemFactoryProvider

Remarks

Usually, one scope is created per form/window. Entities pinned to the scope (marked as needed) are not evicted from the cache until the scope is disposed or collected by the garbage collector.

This class is a base class for platform-specific scopes, such as C1.Data.Entities.EntityClientCache (Entity Framework) and C1.Silverlight.Data.RiaServices.RiaClientCache (RIA Services).

Inheritance Hierarchy

System..::..Object
  C1.Data..::..ClientScope
    C1.Silverlight.Data.RiaServices..::..RiaClientScope

See Also