DbMappingViewCacheTypeAttribute Class

 

Defines a custom attribute that specifies the mapping view cache type (subclass of DbMappingViewCache ) associated with a context type (subclass of ObjectContext or DbContext ). The cache type is instantiated at runtime and used to retrieve pre-generated views in the corresponding context.

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

System.Object
  System.Attribute
    System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute

[AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = true)]
[SuppressMessageAttribute("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments")]
public sealed class DbMappingViewCacheTypeAttribute : Attribute

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.

NameDescription
System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.