ComponentOne Data Source for Entity Framework
C1.Data.Entities Namespace / EntityClientCache Class / GetDefault Method
A subclass of ObjectContext to get the default EntityClientCache for.

In This Topic
    GetDefault Method
    In This Topic
    Returns the default EntityClientCache for a given contextType.
    Syntax
    'Declaration
     
    
    Public Shared Function GetDefault( _
       ByVal contextType As System.Type _
    ) As EntityClientCache
    public static EntityClientCache GetDefault( 
       System.Type contextType
    )

    Parameters

    contextType
    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