DbMappingViewCacheTypeAttribute Constructor

 

Initializes a new instance of the DbMappingViewCacheTypeAttribute class.

Namespace:   System.Data.Entity.Infrastructure.MappingViews
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodDbMappingViewCacheTypeAttribute(Type, String)

Creates a DbMappingViewCacheTypeAttribute instance that associates a context type with a mapping view cache type.

System_CAPS_pubmethodDbMappingViewCacheTypeAttribute(Type, Type)

Creates a DbMappingViewCacheTypeAttribute instance that associates a context type with a mapping view cache type.


DbMappingViewCacheTypeAttribute Constructor (Type, String)

Creates a DbMappingViewCacheTypeAttribute instance that associates a context type with a mapping view cache type.

public DbMappingViewCacheTypeAttribute(
	Type contextType,
	string cacheTypeName
)

Parameters

contextType
Type: System.Type

A subclass of ObjectContext or DbContext.

cacheTypeName
Type: System.String

The assembly qualified full name of the cache type.


DbMappingViewCacheTypeAttribute Constructor (Type, Type)

Creates a DbMappingViewCacheTypeAttribute instance that associates a context type with a mapping view cache type.

public DbMappingViewCacheTypeAttribute(
	Type contextType,
	Type cacheType
)

Parameters

contextType
Type: System.Type

A subclass of ObjectContext or DbContext.

cacheType
Type: System.Type

A subclass of DbMappingViewCache.