語言

AnnotationCodeGenerator.IsHandledByConvention 方法

定義

多載

名稱 Description
IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

檢查當給定 annotation 應用於給定 overrides時,是否依慣例處理。

IsHandledByConvention(ITrigger, IAnnotation)

檢查當給定 annotation 應用於給定 trigger時,是否依慣例處理。

IsHandledByConvention(ISkipNavigation, IAnnotation)

檢查當給定 annotation 應用於給定 navigation時,是否依慣例處理。

IsHandledByConvention(ISequence, IAnnotation)

檢查當給定 annotation 應用於給定 sequence時,是否依慣例處理。

IsHandledByConvention(IProperty, IAnnotation)

檢查當給定 annotation 應用於給定 property時,是否依慣例處理。

IsHandledByConvention(INavigation, IAnnotation)

檢查當給定 annotation 應用於給定 navigation時,是否依慣例處理。

IsHandledByConvention(IModel, IAnnotation)

檢查當給定 annotation 應用於給定 model時,是否依慣例處理。

IsHandledByConvention(IIndex, IAnnotation)

檢查當給定 annotation 應用於給定 index時,是否依慣例處理。

IsHandledByConvention(IForeignKey, IAnnotation)

檢查當給定 annotation 應用於給定 foreignKey時,是否依慣例處理。

IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)

檢查當給定 annotation 應用於給定 fragment時,是否依慣例處理。

IsHandledByConvention(IEntityType, IAnnotation)

檢查當給定 annotation 應用於給定 entityType時,是否依慣例處理。

IsHandledByConvention(IComplexType, IAnnotation)

檢查當給定 annotation 應用於給定 complexType時,是否依慣例處理。

IsHandledByConvention(IComplexProperty, IAnnotation)

檢查當給定 annotation 應用於給定 complexProperty時,是否依慣例處理。

IsHandledByConvention(ICheckConstraint, IAnnotation)

檢查當給定 annotation 應用於給定 checkConstraint時,是否依慣例處理。

IsHandledByConvention(IKey, IAnnotation)

檢查當給定 annotation 應用於給定 key時,是否依慣例處理。

IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 overrides時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 trigger時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 navigation時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 sequence時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 property時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 navigation時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 model時,是否依慣例處理。

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。

傳回

true 如果註解是慣例處理; false 如果必須產生程式碼。

實作

備註

預設實作一律會傳 false回 。

適用於

IsHandledByConvention(IIndex, IAnnotation)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 index時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 foreignKey時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 fragment時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 entityType時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 complexType時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 complexProperty時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 checkConstraint時,是否依慣例處理。

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)

來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs
來源:
AnnotationCodeGenerator.cs

檢查當給定 annotation 應用於給定 key時,是否依慣例處理。

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回 。

適用於