共用方式為


IAnnotationCodeGenerator.IsHandledByConvention 方法

定義

多載

IsHandledByConvention(IProperty, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IProperty

IsHandledByConvention(IModel, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IModel

IsHandledByConvention(IKey, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IKey

IsHandledByConvention(IIndex, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IIndex

IsHandledByConvention(IForeignKey, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IForeignKey

IsHandledByConvention(IEntityType, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IEntityType

IsHandledByConvention(IProperty, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IProperty

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)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IModel

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

傳回

如果注釋是以慣例處理,則為 True;如果必須產生程式碼,則為 false。

適用於

IsHandledByConvention(IKey, IAnnotation)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IKey

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)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IIndex

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)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IForeignKey

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)

檢查在套用至指定 時,指定的 IAnnotation 是否以慣例處理指定的 IEntityType

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

傳回

如果注釋是以慣例處理,則為 True;如果必須產生程式碼,則為 false。

適用於