共用方式為


DbMappingViewCacheTypeAttribute 類別

定義

定義自訂屬性,指定與 或 DbContext) 子類別相關聯之) 的對應檢視快取類型 ( (子類別。 DbMappingViewCacheObjectContext 快取類型會在執行時間具現化,並用來擷取對應內容中預先產生的檢視。

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments")]
public sealed class DbMappingViewCacheTypeAttribute : Attribute
type DbMappingViewCacheTypeAttribute = class
    inherit Attribute
Public NotInheritable Class DbMappingViewCacheTypeAttribute
Inherits Attribute
繼承
DbMappingViewCacheTypeAttribute
屬性

建構函式

DbMappingViewCacheTypeAttribute(Type, String)

建立 DbMappingViewCacheTypeAttribute 實例,將內容類型與對應檢視快取類型產生關聯。

DbMappingViewCacheTypeAttribute(Type, Type)

建立 DbMappingViewCacheTypeAttribute 實例,將內容類型與對應檢視快取類型產生關聯。

適用於