RelationalPropertyAnnotations.GetAnnotations 方法

定义

重载

GetAnnotations(IProperty)

RelationalPropertyAnnotations获取给定 IProperty 的实例,该RelationalAnnotations实例维护此实例用于按约定控制设置批注的语义。

GetAnnotations(IEntityType)

RelationalEntityTypeAnnotations获取给定 IEntityType 的实例,该RelationalAnnotations实例维护此实例用于按约定控制设置批注的语义。

GetAnnotations(IProperty)

Source:
RelationalPropertyAnnotations.cs
Source:
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)

Source:
RelationalPropertyAnnotations.cs
Source:
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 实例。

适用于