语言

IAnnotationCodeGenerator.IsHandledByConvention 方法

定义

重载

名称 说明
IsHandledByConvention(IProperty, IAnnotation)

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

IsHandledByConvention(IModel, IAnnotation)

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

IsHandledByConvention(IKey, IAnnotation)

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

IsHandledByConvention(IIndex, IAnnotation)

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

IsHandledByConvention(IForeignKey, IAnnotation)

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

IsHandledByConvention(IEntityType, IAnnotation)

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

IsHandledByConvention(IProperty, IAnnotation)

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

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

参数

property
IProperty

IProperty。

annotation
IAnnotation

IAnnotation。

返回

适用于

IsHandledByConvention(IModel, IAnnotation)

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

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

参数

model
IModel

IModel。

annotation
IAnnotation

IAnnotation。

返回

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

适用于

IsHandledByConvention(IKey, IAnnotation)

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

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

参数

key
IKey

IKey。

annotation
IAnnotation

IAnnotation。

返回

适用于

IsHandledByConvention(IIndex, IAnnotation)

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

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

参数

index
IIndex

IIndex。

annotation
IAnnotation

IAnnotation。

返回

适用于

IsHandledByConvention(IForeignKey, IAnnotation)

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

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

参数

foreignKey
IForeignKey

IForeignKey。

annotation
IAnnotation

IAnnotation。

返回

适用于

IsHandledByConvention(IEntityType, IAnnotation)

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

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

参数

entityType
IEntityType

IEntityType。

annotation
IAnnotation

IAnnotation。

返回

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

适用于