语言

AnnotationCodeGenerator.IsHandledByConvention 方法

定义

重载

名称 说明
IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

检查给定在应用于给定overrides时是否annotation由约定处理。

IsHandledByConvention(ITrigger, IAnnotation)

检查给定在应用于给定trigger时是否annotation由约定处理。

IsHandledByConvention(ISkipNavigation, IAnnotation)

检查给定在应用于给定navigation时是否annotation由约定处理。

IsHandledByConvention(ISequence, IAnnotation)

检查给定在应用于给定sequence时是否annotation由约定处理。

IsHandledByConvention(IProperty, IAnnotation)

检查给定在应用于给定property时是否annotation由约定处理。

IsHandledByConvention(INavigation, IAnnotation)

检查给定在应用于给定navigation时是否annotation由约定处理。

IsHandledByConvention(IModel, IAnnotation)

检查给定在应用于给定model时是否annotation由约定处理。

IsHandledByConvention(IIndex, IAnnotation)

检查给定在应用于给定index时是否annotation由约定处理。

IsHandledByConvention(IForeignKey, IAnnotation)

检查给定在应用于给定foreignKey时是否annotation由约定处理。

IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)

检查给定在应用于给定fragment时是否annotation由约定处理。

IsHandledByConvention(IEntityType, IAnnotation)

检查给定在应用于给定entityType时是否annotation由约定处理。

IsHandledByConvention(IComplexType, IAnnotation)

检查给定在应用于给定complexType时是否annotation由约定处理。

IsHandledByConvention(IComplexProperty, IAnnotation)

检查给定在应用于给定complexProperty时是否annotation由约定处理。

IsHandledByConvention(ICheckConstraint, IAnnotation)

检查给定在应用于给定checkConstraint时是否annotation由约定处理。

IsHandledByConvention(IKey, IAnnotation)

检查给定在应用于给定key时是否annotation由约定处理。

IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定overrides时是否annotation由约定处理。

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

参数

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(ITrigger, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定trigger时是否annotation由约定处理。

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

参数

trigger
ITrigger

ITrigger。

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(ISkipNavigation, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定navigation时是否annotation由约定处理。

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

参数

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(ISequence, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定sequence时是否annotation由约定处理。

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

参数

sequence
ISequence

ISequence。

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

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
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定property时是否annotation由约定处理。

protected virtual bool IsHandledByConvention(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
public 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
Protected Overridable Function IsHandledByConvention (property As IProperty, annotation As IAnnotation) As Boolean
Public Overridable Function IsHandledByConvention (property As IProperty, annotation As IAnnotation) As Boolean

参数

property
IProperty

IProperty。

annotation
IAnnotation

IAnnotation。

返回

false。

实现

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(INavigation, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定navigation时是否annotation由约定处理。

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

参数

navigation
INavigation

INavigation。

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

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
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定model时是否annotation由约定处理。

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

参数

model
IModel

IModel。

annotation
IAnnotation

IAnnotation。

返回

如果批注由约定处理,则为 如果必须生成代码,则为

实现

注解

默认实现始终返回 false。

适用于

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
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定index时是否annotation由约定处理。

protected virtual bool IsHandledByConvention(Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
public 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
Protected Overridable Function IsHandledByConvention (index As IIndex, annotation As IAnnotation) As Boolean
Public Overridable Function IsHandledByConvention (index As IIndex, annotation As IAnnotation) As Boolean

参数

index
IIndex

IIndex。

annotation
IAnnotation

IAnnotation。

返回

false。

实现

注解

默认实现始终返回 false。

适用于

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
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定foreignKey时是否annotation由约定处理。

protected virtual bool IsHandledByConvention(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
public 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
Protected Overridable Function IsHandledByConvention (foreignKey As IForeignKey, annotation As IAnnotation) As Boolean
Public Overridable Function IsHandledByConvention (foreignKey As IForeignKey, annotation As IAnnotation) As Boolean

参数

foreignKey
IForeignKey

IForeignKey。

annotation
IAnnotation

IAnnotation。

返回

false。

实现

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定fragment时是否annotation由约定处理。

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

参数

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

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
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定entityType时是否annotation由约定处理。

protected virtual bool IsHandledByConvention(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
public 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
Protected Overridable Function IsHandledByConvention (entityType As IEntityType, annotation As IAnnotation) As Boolean
Public Overridable Function IsHandledByConvention (entityType As IEntityType, annotation As IAnnotation) As Boolean

参数

entityType
IEntityType

IEntityType。

annotation
IAnnotation

IAnnotation。

返回

false。

实现

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(IComplexType, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定complexType时是否annotation由约定处理。

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

参数

complexType
IComplexType

IComplexType。

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(IComplexProperty, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定complexProperty时是否annotation由约定处理。

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

参数

complexProperty
IComplexProperty

IComplexProperty。

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

IsHandledByConvention(ICheckConstraint, IAnnotation)

Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定checkConstraint时是否annotation由约定处理。

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

参数

checkConstraint
ICheckConstraint

ICheckConstraint。

annotation
IAnnotation

IAnnotation。

返回

false。

注解

默认实现始终返回 false。

适用于

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
Source:
AnnotationCodeGenerator.cs
Source:
AnnotationCodeGenerator.cs

检查给定在应用于给定key时是否annotation由约定处理。

protected virtual bool IsHandledByConvention(Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
public 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
Protected Overridable Function IsHandledByConvention (key As IKey, annotation As IAnnotation) As Boolean
Public Overridable Function IsHandledByConvention (key As IKey, annotation As IAnnotation) As Boolean

参数

key
IKey

IKey。

annotation
IAnnotation

IAnnotation。

返回

false。

实现

注解

默认实现始终返回 false。

适用于