RequiredNavigationAttributeConvention Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Konwencja, która konfiguruje główną stronę relacji zgodnie z wymaganiami, jeśli RequiredAttribute właściwość nawigacji jest stosowana do typu jednostki głównej.
[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)
- Dziedziczenie
- Atrybuty
- Implementuje
Uwagi
Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli .
Konstruktory
| Nazwisko | Opis |
|---|---|
| RequiredNavigationAttributeConvention(ProviderConventionSetBuilderDependencies) |
Tworzy nowe wystąpienie klasy RequiredNavigationAttributeConvention. |
Właściwości
| Nazwisko | Opis |
|---|---|
| Dependencies |
Zależności dla tej usługi. (Odziedziczone po NavigationAttributeConventionBase<TAttribute>) |