Język

RelationalTableCommentAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje komentarz tabeli dla typu jednostki na podstawie zastosowanego CommentAttributeelementu .

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RelationalTableCommentAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.CommentAttribute>
public class RelationalTableCommentAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.EntityTypeAttributeConventionBase<Microsoft.EntityFrameworkCore.CommentAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RelationalTableCommentAttributeConvention = class
    inherit TypeAttributeConventionBase<CommentAttribute>
type RelationalTableCommentAttributeConvention = class
    inherit EntityTypeAttributeConventionBase<CommentAttribute>
Public Class RelationalTableCommentAttributeConvention
Inherits TypeAttributeConventionBase(Of CommentAttribute)
Public Class RelationalTableCommentAttributeConvention
Inherits EntityTypeAttributeConventionBase(Of CommentAttribute)
Dziedziczenie
RelationalTableCommentAttributeConvention
Dziedziczenie
RelationalTableCommentAttributeConvention
Atrybuty

Uwagi

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

Konstruktory

Nazwisko Opis
RelationalTableCommentAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy RelationalTableCommentAttributeConvention.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
Dependencies

Zależności dla tej usługi.

(Odziedziczone po EntityTypeAttributeConventionBase<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 TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

Wywoływana po dodaniu typu złożonego do modelu, jeśli ma atrybut.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, CommentAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu, jeśli ma atrybut.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu.

(Odziedziczone po EntityTypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu, jeśli ma atrybut.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu, jeśli ma atrybut.

(Odziedziczone po EntityTypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Próbuje zastąpić typ złożony typem jednostki.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)

Dotyczy