AnnotationCodeGenerator.IsHandledByConvention 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IsHandledByConvention(IRelationalPropertyOverrides, IAnnotation)
檢查當給定 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
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(ITrigger, IAnnotation)
檢查當給定 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
參數
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(ISkipNavigation, IAnnotation)
檢查當給定 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
參數
- navigation
- ISkipNavigation
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(ISequence, IAnnotation)
檢查當給定 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
參數
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IProperty, IAnnotation)
檢查當給定 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
參數
- annotation
- IAnnotation
傳回
false。
實作
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(INavigation, IAnnotation)
檢查當給定 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
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IModel, IAnnotation)
檢查當給定 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
參數
- annotation
- IAnnotation
傳回
true 如果註解是慣例處理; false 如果必須產生程式碼。
實作
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IIndex, IAnnotation)
檢查當給定 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
參數
- annotation
- IAnnotation
傳回
false。
實作
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IForeignKey, IAnnotation)
檢查當給定 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
- annotation
- IAnnotation
傳回
false。
實作
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IEntityTypeMappingFragment, IAnnotation)
檢查當給定 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
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IEntityType, IAnnotation)
檢查當給定 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
- annotation
- IAnnotation
傳回
false。
實作
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IComplexType, IAnnotation)
檢查當給定 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
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IComplexProperty, IAnnotation)
檢查當給定 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
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(ICheckConstraint, IAnnotation)
檢查當給定 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
- annotation
- IAnnotation
傳回
false。
備註
預設實作一律會傳 false回 。
適用於
IsHandledByConvention(IKey, IAnnotation)
檢查當給定 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
參數
- annotation
- IAnnotation
傳回
false。
實作
備註
預設實作一律會傳 false回 。