Share via


RelationalPropertyAnnotations.GetAnnotations Method

Definition

Overloads

GetAnnotations(IProperty)

Gets a RelationalPropertyAnnotations instance for the given IProperty maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

GetAnnotations(IEntityType)

Gets a RelationalEntityTypeAnnotations instance for the given IEntityType maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

GetAnnotations(IProperty)

Gets a RelationalPropertyAnnotations instance for the given IProperty maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

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

Parameters

property
IProperty

The IProperty to annotate.

Returns

A new RelationalPropertyAnnotations instance.

Applies to

GetAnnotations(IEntityType)

Gets a RelationalEntityTypeAnnotations instance for the given IEntityType maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

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

Parameters

entityType
IEntityType

The IEntityType to annotate.

Returns

A new RelationalEntityTypeAnnotations instance.

Applies to