[]
        
(Showing Draft Content)

C1.Data.Entities.EntityClientScope

EntityClientScope Class

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

Inheritance
EntityClientScope
Implements
Namespace: C1.Data.Entities
Assembly: C1.Data.Entity.4.8.dll
Syntax
public class EntityClientScope : ClientScope, IDisposable
Remarks

Usually, one scope is created for each window/user control, and disposed at the end of its lifetime. Entities pinned to the scope (marked as needed) are not evicted from the cache until the scope is disposed or collected by the GC.

Constructors

Name Description
EntityClientScope(EntityClientCache)

Initializes a new instance of the EntityClientScope class with the specified EntityClientCache.

Properties

Name Description
ClientCache

Gets the EntityClientCache to which this client scope is connected.

Methods

Name Description
GetItems<T>()

Gets a client view of entities of a given type.

GetItems<T>(string)

Gets a client view of entities from the specified entitySetName.