DbMappingViewCacheTypeAttribute Constructor
Initializes a new instance of the DbMappingViewCacheTypeAttribute class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | DbMappingViewCacheTypeAttribute(Type, String) | Creates a DbMappingViewCacheTypeAttribute instance that associates a context type with a mapping view cache type. |
![]() | DbMappingViewCacheTypeAttribute(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.
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.
Parameters
- contextType
-
Type:
System.Type
A subclass of ObjectContext or DbContext.
- cacheType
-
Type:
System.Type
A subclass of DbMappingViewCache.