Returns the default RiaClientCache for a given contextType.

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

Syntax

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

Parameters

contextType
Type: System..::..Type
A subclass of DomainContext to get the default RiaClientCache for.

Return Value

The default RiaClientCache for the specified contextType.

Remarks

Creates an RiaClientCache 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 DomainContextTypeName.

See Also