Język

RelationalColumnAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje nazwę i typ kolumny dla właściwości na podstawie zastosowanego ColumnAttributeelementu .

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RelationalColumnAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.ColumnAttribute>
public class RelationalColumnAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.ColumnAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RelationalColumnAttributeConvention = class
    inherit PropertyAttributeConventionBase<ColumnAttribute>
type RelationalColumnAttributeConvention = class
    inherit PropertyAttributeConventionBase<ColumnAttribute>
Public Class RelationalColumnAttributeConvention
Inherits PropertyAttributeConventionBase(Of ColumnAttribute)
Dziedziczenie
RelationalColumnAttributeConvention
Atrybuty

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli .

Konstruktory

Nazwisko Opis
RelationalColumnAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy RelationalColumnAttributeConvention.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

Zależności specyficzne dla dostawcy relacyjnego dla tej usługi.

Metody

Nazwisko Opis
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Wywoływana po dodaniu właściwości złożonej do obiektu przypominającego typ.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wywoływane po zmianie pola zapasowego dla właściwości złożonej.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości złożonej do typu z atrybutem w skojarzonej właściwości lub polu CLR.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, ColumnAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości do typu jednostki z atrybutem w skojarzonej właściwości lub polu CLR.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Wywoływana po dodaniu właściwości do typu jednostki.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości do typu jednostki z atrybutem w skojarzonej właściwości lub polu CLR.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wywoływana po zmianie pola kopii zapasowej dla właściwości.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)

Dotyczy