ScaffoldingModelExtensions.IsHandledByDataAnnotations 方法

定義

取得值,指出這個索引是否可以由資料批註完全重新排列。

public static bool IsHandledByDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member IsHandledByDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> bool
<Extension()>
Public Function IsHandledByDataAnnotations (index As IIndex, annotationCodeGenerator As IAnnotationCodeGenerator) As Boolean

參數

index
IIndex

索引。

annotationCodeGenerator
IAnnotationCodeGenerator

提供者的注釋程式碼產生器。

傳回

true 如果此索引可由資料批註重新指定,則為 。

適用於