RequiredNavigationAttributeConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若將 應用於導航屬性至主要實體類型時,則配置關係的主要 RequiredAttribute 端。
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RequiredNavigationAttributeConvention = class
inherit NavigationAttributeConventionBase<RequiredAttribute>
interface INavigationAddedConvention
interface IConvention
interface ISkipNavigationAddedConvention
interface IForeignKeyPrincipalEndChangedConvention
type RequiredNavigationAttributeConvention = class
inherit NavigationAttributeConventionBase<RequiredAttribute>
type RequiredNavigationAttributeConvention = class
inherit NavigationAttributeConventionBase<RequiredAttribute>
interface INavigationAddedConvention
interface IConvention
interface ISkipNavigationAddedConvention
interface IForeignKeyPrincipalEndChangedConvention
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention, ISkipNavigationAddedConvention
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
- 繼承
- 屬性
- 實作
備註
更多資訊與範例請參閱 模型建構慣例 。
建構函式
| 名稱 | Description |
|---|---|
| RequiredNavigationAttributeConvention(ProviderConventionSetBuilderDependencies) |
建立一個新的 實例。RequiredNavigationAttributeConvention |
屬性
| 名稱 | Description |
|---|---|
| Dependencies |
此服務的依賴關係。 (繼承來源 NavigationAttributeConventionBase<TAttribute>) |