共用方式為


SqlServerAnnotationProvider.For 方法

定義

多載

For(IEntityType)

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations For(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
Public Overridable Function For (entityType As IEntityType) As IRelationalEntityTypeAnnotations

參數

entityType
IEntityType

傳回

實作

適用於

For(IForeignKey)

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations For(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
Public Overridable Function For (foreignKey As IForeignKey) As IRelationalForeignKeyAnnotations

參數

foreignKey
IForeignKey

傳回

實作

適用於

For(IIndex)

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations For(Microsoft.EntityFrameworkCore.Metadata.IIndex index);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations
Public Overridable Function For (index As IIndex) As IRelationalIndexAnnotations

參數

index
IIndex

傳回

實作

適用於

For(IKey)

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations For(Microsoft.EntityFrameworkCore.Metadata.IKey key);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
Public Overridable Function For (key As IKey) As IRelationalKeyAnnotations

參數

key
IKey

傳回

實作

適用於

For(IModel)

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations For(Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
Public Overridable Function For (model As IModel) As IRelationalModelAnnotations

參數

model
IModel

傳回

實作

適用於

For(IProperty)

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations For(Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
Public Overridable Function For (property As IProperty) As IRelationalPropertyAnnotations

參數

property
IProperty

傳回

實作

適用於