SuppressDbSetInitializationAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この属性は、派生 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> プロパティを適用しても、モデルに含まれますが、自動的には初期化されません。 |
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework