Megosztás a következőn keresztül:


AnnotationCodeGenerator.IsHandledByConvention Method

Definition

Overloads

IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given overrides.

IsHandledByConvention(ITrigger, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given trigger.

IsHandledByConvention(ISkipNavigation, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given navigation.

IsHandledByConvention(ISequence, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given sequence.

IsHandledByConvention(IProperty, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given property.

IsHandledByConvention(INavigation, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given navigation.

IsHandledByConvention(IModel, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given model.

IsHandledByConvention(IIndex, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given index.

IsHandledByConvention(IForeignKey, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given foreignKey.

IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given fragment.

IsHandledByConvention(IEntityType, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given entityType.

IsHandledByConvention(IComplexType, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given complexType.

IsHandledByConvention(IComplexProperty, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given complexProperty.

IsHandledByConvention(ICheckConstraint, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given checkConstraint.

IsHandledByConvention(IKey, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given key.

IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given overrides.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides overrides, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyOverrides * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (overrides As IRelationalPropertyOverrides, annotation As IAnnotation) As Boolean

Parameters

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(ITrigger, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given trigger.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.ITrigger trigger, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ITrigger * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ITrigger * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (trigger As ITrigger, annotation As IAnnotation) As Boolean

Parameters

trigger
ITrigger

The ITrigger.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(ISkipNavigation, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given navigation.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (navigation As ISkipNavigation, annotation As IAnnotation) As Boolean

Parameters

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(ISequence, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given sequence.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ISequence * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ISequence * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (sequence As ISequence, annotation As IAnnotation) As Boolean

Parameters

sequence
ISequence

The ISequence.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IProperty, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given property.

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

Parameters

property
IProperty

The IProperty.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Implements

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(INavigation, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given navigation.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (navigation As INavigation, annotation As IAnnotation) As Boolean

Parameters

navigation
INavigation

The INavigation.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IModel, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given model.

public virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Public Overridable Function IsHandledByConvention (model As IModel, annotation As IAnnotation) As Boolean
Protected Overridable 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.

Implements

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IIndex, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given index.

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

Parameters

index
IIndex

The IIndex.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Implements

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IForeignKey, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given foreignKey.

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

Parameters

foreignKey
IForeignKey

The IForeignKey.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Implements

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given fragment.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment fragment, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IEntityTypeMappingFragment * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (fragment As IEntityTypeMappingFragment, annotation As IAnnotation) As Boolean

Parameters

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IEntityType, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given entityType.

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

Parameters

entityType
IEntityType

The IEntityType.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Implements

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IComplexType, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given complexType.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IComplexType complexType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IComplexType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IComplexType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (complexType As IComplexType, annotation As IAnnotation) As Boolean

Parameters

complexType
IComplexType

The IComplexType.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IComplexProperty, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given complexProperty.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.IComplexProperty complexProperty, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (complexProperty As IComplexProperty, annotation As IAnnotation) As Boolean

Parameters

complexProperty
IComplexProperty

The IComplexProperty.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(ICheckConstraint, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given checkConstraint.

protected virtual bool IsHandledByConvention (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
override this.IsHandledByConvention : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> bool
Protected Overridable Function IsHandledByConvention (checkConstraint As ICheckConstraint, annotation As IAnnotation) As Boolean

Parameters

checkConstraint
ICheckConstraint

The ICheckConstraint.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Remarks

The default implementation always returns false.

Applies to

IsHandledByConvention(IKey, IAnnotation)

Checks if the given annotation is handled by convention when applied to the given key.

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

Parameters

key
IKey

The IKey.

annotation
IAnnotation

The IAnnotation.

Returns

false.

Implements

Remarks

The default implementation always returns false.

Applies to