Returns the default EntityClientCache for a given contextType.

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

Syntax

C#
public static EntityClientCache GetDefault(
	Type contextType
)
Visual Basic
Public Shared Function GetDefault ( _
	contextType As Type _
) As EntityClientCache

Parameters

contextType
Type: System..::..Type
A subclass of ObjectContext to get the default EntityClientCache for.

Return Value

The default EntityClientCache for the given contextType.

Remarks

Creates an EntityClientCache for the specified contextType if it does not already exist; otherwise, returns an existing instance.

It is the same default client cache as used by C1DataSource with specified C1DataSource.ObjectContextType.

See Also