SuppressDbSetInitializationAttribute クラス

定義

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

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")]
public sealed class SuppressDbSetInitializationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class SuppressDbSetInitializationAttribute : Attribute
type SuppressDbSetInitializationAttribute = class
    inherit Attribute
Public NotInheritable Class SuppressDbSetInitializationAttribute
Inherits Attribute
継承
SuppressDbSetInitializationAttribute
属性

コンストラクター

SuppressDbSetInitializationAttribute()

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

適用対象