語言

RelationalPropertyAnnotations.GetAnnotations 方法

定義

多載

名稱 Description
GetAnnotations(IProperty)

取得 RelationalPropertyAnnotations 給定 IProperty 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。

GetAnnotations(IEntityType)

取得 RelationalEntityTypeAnnotations 給定 IEntityType 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。

GetAnnotations(IProperty)

來源:
RelationalPropertyAnnotations.cs
來源:
RelationalPropertyAnnotations.cs

取得 RelationalPropertyAnnotations 給定 IProperty 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。

protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations GetAnnotations(Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations
override this.GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations
Protected Overridable Function GetAnnotations (property As IProperty) As RelationalPropertyAnnotations

參數

property
IProperty

註 IProperty 解。

傳回

一個新的 RelationalPropertyAnnotations 實例。

適用於

GetAnnotations(IEntityType)

來源:
RelationalPropertyAnnotations.cs
來源:
RelationalPropertyAnnotations.cs

取得 RelationalEntityTypeAnnotations 給定 IEntityType 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。

protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations GetAnnotations(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
override this.GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
Protected Overridable Function GetAnnotations (entityType As IEntityType) As RelationalEntityTypeAnnotations

參數

entityType
IEntityType

註 IEntityType 解。

傳回

一個新的 RelationalEntityTypeAnnotations 實例。

適用於