次の方法で共有


DbMappingViewCacheTypeAttribute クラス

定義

コンテキスト型 (または DbContextのサブクラス) に関連付けられたマッピング ビュー キャッシュの種類 (のDbMappingViewCacheサブクラスObjectContext) を指定するカスタム属性を定義します。 キャッシュの種類は実行時にインスタンス化され、対応するコンテキストで事前に生成されたビューを取得するために使用されます。

[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 マッピング ビューのキャッシュの種類を関連付けるインスタンスを作成します。

適用対象