[]
        
(Showing Draft Content)

C1.Data.Entities.EntityClientCache.GetDefault

GetDefault Method

GetDefault(Type)

Returns the default EntityClientCache for a given contextType.

Declaration
public static EntityClientCache GetDefault(Type contextType)
Parameters
Type Name Description
Type contextType

A subclass of ObjectContext to get the default EntityClientCache for.

Returns
Type Description
EntityClientCache

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.