IAnnotationCodeGenerator.GenerateDataAnnotationAttributes Метод

Определение

Перегрузки

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Для заданных заметок, имеющих соответствующие атрибуты заметки к данным, возвращает фрагменты кода атрибутов и удаляет заметки.

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Для заданных заметок, имеющих соответствующие атрибуты заметки к данным, возвращает фрагменты кода атрибутов и удаляет заметки.

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Для заданных заметок, имеющих соответствующие атрибуты заметки к данным, возвращает фрагменты кода атрибутов и удаляет заметки.

GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)

Для заданных заметок, имеющих соответствующие атрибуты заметки к данным, возвращает фрагменты кода атрибутов и удаляет заметки.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (annotatable As IAnnotatable, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

Параметры

annotatable
IAnnotatable

Заметки, к которым применяются заметки.

annotations
IDictionary<String,IAnnotation>

Набор заметок для создания текучих вызовов API.

Возвращаемое значение

Применяется к

GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)

Для заданных заметок, имеющих соответствующие атрибуты заметки к данным, возвращает фрагменты кода атрибутов и удаляет заметки.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (entityType As IEntityType, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

Параметры

entityType
IEntityType

Тип сущности, к которому применяются заметки.

annotations
IDictionary<String,IAnnotation>

Набор заметок для создания текучих вызовов API.

Возвращаемое значение

Применяется к

GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)

Для заданных заметок, имеющих соответствующие атрибуты заметки к данным, возвращает фрагменты кода атрибутов и удаляет заметки.

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IProperty property, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (property As IProperty, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)

Параметры

property
IProperty

Свойство, к которому применяются заметки.

annotations
IDictionary<String,IAnnotation>

Набор заметок для создания текучих вызовов API.

Возвращаемое значение

Применяется к