C1.Data.Entities Namespace > EntityClientCache Class : GetDefault Method |
'Declaration
Public Shared Function GetDefault( _ ByVal contextType As System.Type _ ) As EntityClientCache
public static EntityClientCache GetDefault( System.Type contextType )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2