IAnnotationCodeGenerator.IsHandledByConvention 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
参数
- annotation
- 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
参数
- annotation
- 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
参数
- annotation
- 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
参数
- annotation
- 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
- annotation
- 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
- annotation
- IAnnotation
返回
如此 如果批注由约定处理;如果必须生成代码,则为 false。