ScaffoldingModelExtensions.GetDataAnnotations Método

Definição

Sobrecargas

GetDataAnnotations(IEntityType, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar um tipo de entidade.

GetDataAnnotations(INavigation, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar uma propriedade de navegação.

GetDataAnnotations(IProperty, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar uma propriedade.

GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar uma propriedade de navegação skip.

GetDataAnnotations(IEntityType, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar um tipo de entidade.

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__5))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__5))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (entityType As IEntityType, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)

Parâmetros

entityType
IEntityType

O tipo de entidade.

annotationCodeGenerator
IAnnotationCodeGenerator

O gerador de código de anotação do provedor.

Retornos

As anotações de dados.

Atributos

Aplica-se a

GetDataAnnotations(INavigation, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar uma propriedade de navegação.

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__7))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__7))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (navigation As INavigation, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)

Parâmetros

navigation
INavigation

A propriedade de navegação.

annotationCodeGenerator
IAnnotationCodeGenerator

O gerador de código de anotação do provedor.

Retornos

As anotações de dados.

Atributos

Aplica-se a

GetDataAnnotations(IProperty, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar uma propriedade.

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__6))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__6))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (property As IProperty, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)

Parâmetros

property
IProperty

A propriedade.

annotationCodeGenerator
IAnnotationCodeGenerator

O gerador de código de anotação do provedor.

Retornos

As anotações de dados.

Atributos

Aplica-se a

GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator)

Obtém as anotações de dados para configurar uma propriedade de navegação skip.

[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__8))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation skipNavigation, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__8))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (skipNavigation As ISkipNavigation, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)

Parâmetros

skipNavigation
ISkipNavigation

A propriedade de navegação skip.

annotationCodeGenerator
IAnnotationCodeGenerator

O gerador de código de anotação do provedor.

Retornos

As anotações de dados.

Atributos

Aplica-se a