AnnotationCodeGenerator.IsHandledByConvention Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation) |
Checks if the given |
IsHandledByConvention(ITrigger, IAnnotation) |
Checks if the given |
IsHandledByConvention(ISkipNavigation, IAnnotation) |
Checks if the given |
IsHandledByConvention(ISequence, IAnnotation) |
Checks if the given |
IsHandledByConvention(IProperty, IAnnotation) |
Checks if the given |
IsHandledByConvention(INavigation, IAnnotation) |
Checks if the given |
IsHandledByConvention(IModel, IAnnotation) |
Checks if the given |
IsHandledByConvention(IIndex, IAnnotation) |
Checks if the given |
IsHandledByConvention(IForeignKey, IAnnotation) |
Checks if the given |
IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation) |
Checks if the given |
IsHandledByConvention(IEntityType, IAnnotation) |
Checks if the given |
IsHandledByConvention(IComplexType, IAnnotation) |
Checks if the given |
IsHandledByConvention(IComplexProperty, IAnnotation) |
Checks if the given |
IsHandledByConvention(ICheckConstraint, IAnnotation) |
Checks if the given |
IsHandledByConvention(IKey, IAnnotation) |
Checks if the given |
IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- overrides
- IRelationalPropertyOverrides
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(ITrigger, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(ISkipNavigation, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- navigation
- ISkipNavigation
The ISkipNavigation.
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(ISequence, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(IProperty, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Implements
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(INavigation, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- 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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Implements
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(IForeignKey, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- fragment
- IEntityTypeMappingFragment
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Remarks
The default implementation always returns false
.
Applies to
IsHandledByConvention(IEntityType, IAnnotation)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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)
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
- Source:
- AnnotationCodeGenerator.cs
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
- annotation
- IAnnotation
The IAnnotation.
Returns
false
.
Implements
Remarks
The default implementation always returns false
.
Applies to
Entity Framework