語言

IAnnotationCodeGenerator.IsHandledByConvention 方法

定義

多載

名稱 Description
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。

傳回

若註解依慣例處理,則為真;若必須產生程式碼,則為假。

適用於

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。

傳回

若註解依慣例處理,則為真;若必須產生程式碼,則為假。

適用於