The ClientScope type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ClientScope |
Initializes a new instance of ClientScope class with the given ClientCacheBase.
|
Methods
Name | Description | |
---|---|---|
AddRef(Object) |
Marks an entity as needed. Needed entities are not detached/released from the context
until the client scope is disposed.
|
|
AddRef(Type) |
Mark all entities of a given type as needed. All entities of that type will not be detached from the context until the client scope is disposed.
|
|
Dispose |
Marks the scope as disposed. Entities that were marked needed by a disposed scope may be disposed of (evicted from the cache, detached from context)
unless they are needed by other active scopes.
|
|
Equals |
Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize |
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType |
Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Release(Object) |
Unmark a needed entity.
|
|
Release(Type) |
Unmark a needed entity type. Calling this method does not release memory.
|
|
ToString |
Returns a string that represents the current object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
ClientCache |
Gets the ClientCacheBase to which this client scope is connected.
|