Share via


SuppressDbSetInitializationAttribute クラス

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

この属性は派生 DbContext クラス全体に、またはそのクラスの個々の DbSet<TEntity> または IDbSet<TEntity> プロパティに適用できます。 適用時、検出された DbSet<TEntity> または IDbSet<TEntity> プロパティはまだモデルに入っていますが、自動的に初期化されません。

継承階層

System.Object
  System.Attribute
    System.Data.Entity.Infrastructure.SuppressDbSetInitializationAttribute

名前空間:  System.Data.Entity.Infrastructure
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property, AllowMultiple := False)> _
Public NotInheritable Class SuppressDbSetInitializationAttribute _
    Inherits Attribute
'使用
Dim instance As SuppressDbSetInitializationAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)]
public sealed class SuppressDbSetInitializationAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property, AllowMultiple = false)]
public ref class SuppressDbSetInitializationAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)>]
type SuppressDbSetInitializationAttribute =  
    class 
        inherit Attribute 
    end
public final class SuppressDbSetInitializationAttribute extends Attribute

SuppressDbSetInitializationAttribute 型で公開されるメンバーは以下のとおりです。

コンストラクター

  名前 説明
パブリック メソッド SuppressDbSetInitializationAttribute SuppressDbSetInitializationAttribute クラスの新しいインスタンスを初期化します。

上揃え

プロパティ

  名前 説明
パブリック プロパティ TypeId (Attribute から継承されます。)

上揃え

メソッド

  名前 説明
パブリック メソッド Equals (Attribute から継承されます。)
パブリック メソッド GetHashCode (Attribute から継承されます。)
パブリック メソッド GetType (Object から継承されます。)
パブリック メソッド IsDefaultAttribute (Attribute から継承されます。)
パブリック メソッド Match (Attribute から継承されます。)
パブリック メソッド ToString (Object から継承されます。)

上揃え

明示的なインターフェイスの実装  

  名前 説明
明示的なインターフェイス実装プライベート メソッド _Attribute.GetIDsOfNames (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.GetTypeInfo (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.GetTypeInfoCount (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.Invoke (Attribute から継承されます。)

上揃え

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

参照

System.Data.Entity.Infrastructure 名前空間