Share via


IAnnotationCodeGenerator.IsHandledByConvention Method

Definition

Overloads

IsHandledByConvention(IProperty, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IProperty.

IsHandledByConvention(IModel, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IModel.

IsHandledByConvention(IKey, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IKey.

IsHandledByConvention(IIndex, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IIndex.

IsHandledByConvention(IForeignKey, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IForeignKey.

IsHandledByConvention(IEntityType, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IEntityType.

IsHandledByConvention(IProperty, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IProperty.

public bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Function IsHandledByConvention (property As IProperty, annotation As IAnnotation) As Boolean

Parameters

property
IProperty

The IProperty.

annotation
IAnnotation

The IAnnotation.

Returns

Applies to

IsHandledByConvention(IModel, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IModel.

public bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Function IsHandledByConvention (model As IModel, annotation As IAnnotation) As Boolean

Parameters

model
IModel

The IModel.

annotation
IAnnotation

The IAnnotation.

Returns

True if the annotation is handled by convention; false if code must be generated.

Applies to

IsHandledByConvention(IKey, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IKey.

public bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Function IsHandledByConvention (key As IKey, annotation As IAnnotation) As Boolean

Parameters

key
IKey

The IKey.

annotation
IAnnotation

The IAnnotation.

Returns

Applies to

IsHandledByConvention(IIndex, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IIndex.

public bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Function IsHandledByConvention (index As IIndex, annotation As IAnnotation) As Boolean

Parameters

index
IIndex

The IIndex.

annotation
IAnnotation

The IAnnotation.

Returns

Applies to

IsHandledByConvention(IForeignKey, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IForeignKey.

public bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Function IsHandledByConvention (foreignKey As IForeignKey, annotation As IAnnotation) As Boolean

Parameters

foreignKey
IForeignKey

The IForeignKey.

annotation
IAnnotation

The IAnnotation.

Returns

Applies to

IsHandledByConvention(IEntityType, IAnnotation)

Checks if the given IAnnotation is handled by convention when applied to the given IEntityType.

public bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Function IsHandledByConvention (entityType As IEntityType, annotation As IAnnotation) As Boolean

Parameters

entityType
IEntityType

The IEntityType.

annotation
IAnnotation

The IAnnotation.

Returns

True if the annotation is handled by convention; false if code must be generated.

Applies to